{"_id":"@akki91/ankr-mcp","_rev":"2-d9ff45f483c74c76926ff38bcae8bca1","name":"@akki91/ankr-mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"@akki91/ankr-mcp","version":"0.0.1","author":{"name":"Akshay khare"},"license":"MIT","_id":"@akki91/ankr-mcp@0.0.1","maintainers":[{"name":"akki91","email":"akshaykhare91@gmail.com"}],"homepage":"https://github.com/akki91/ankr-mcp#readme","bugs":{"url":"https://github.com/akki91/ankr-mcp/issues"},"bin":{"ankr-mcp":"dist/index.js"},"dist":{"shasum":"07719ff9781972f41a1361e827eaab7ea4db114b","tarball":"https://registry.npmjs.org/@akki91/ankr-mcp/-/ankr-mcp-0.0.1.tgz","fileCount":6,"integrity":"sha512-+lJR24rw4WKbcI89nmamQOtYDS+U05Ywr9DnSUFXeI3+568ThdmC0j1JI9ryPtBlfMoau67xHFTJMOMULOJhSA==","signatures":[{"sig":"MEQCICczJqqwDrPFZQXZiokjoO/BuALGavZsZ5YvpmMEPvcVAiBbk8yeYLhSM8FGmctMiwxupYVNAoFlmNlDqRYFyoQu5g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15688},"main":"dist/src/index.js","scripts":{"test":"vitest run","build":"rm -rf dist/ && tsc && shx chmod +x dist/*.js","debug":"npx @modelcontextprotocol/inspector node dist/index.js","watch":"tsc --watch","prepare":"npm run build"},"_npmUser":{"name":"akki91","email":"akshaykhare91@gmail.com"},"repository":{"url":"git+https://github.com/akki91/ankr-mcp.git","type":"git"},"_npmVersion":"10.5.1","description":"MCP server for using Ankr API(s)","directories":{},"_nodeVersion":"22.0.0","dependencies":{"zod":"^3.24.2","axios":"^1.8.3","node-fetch":"^3.3.2","@types/node":"^22","@types/node-fetch":"^2.6.12","zod-to-json-schema":"^3.24.2","universal-user-agent":"^7.0.2","@modelcontextprotocol/sdk":"1.7.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","vitest":"^3.0.8","ts-node":"^10.9.2","typescript":"^5.8.2","@types/jest":"^29.5.14"},"_npmOperationalInternal":{"tmp":"tmp/ankr-mcp_0.0.1_1743427523094_0.08209805246232715","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@akki91/ankr-mcp","version":"0.1.0","description":"MCP server for using Ankr API(s)","license":"MIT","repository":{"type":"git","url":"git+https://github.com/akki91/ankr-mcp.git"},"bugs":{"url":"https://github.com/akki91/ankr-mcp/issues"},"author":{"name":"Akshay khare"},"bin":{"ankr-mcp":"dist/index.js"},"main":"dist/src/index.js","scripts":{"build":"rm -rf dist/ && tsc && shx chmod +x dist/*.js","prepare":"npm run build","debug":"npx @modelcontextprotocol/inspector node dist/index.js","watch":"tsc --watch","test":"vitest run"},"dependencies":{"@modelcontextprotocol/sdk":"1.7.0","@types/node":"^22","@types/node-fetch":"^2.6.12","axios":"^1.8.3","node-fetch":"^3.3.2","universal-user-agent":"^7.0.2","zod":"^3.24.2","zod-to-json-schema":"^3.24.2"},"devDependencies":{"@types/jest":"^29.5.14","shx":"^0.3.4","ts-node":"^10.9.2","typescript":"^5.8.2","vitest":"^3.0.8"},"_id":"@akki91/ankr-mcp@0.1.0","gitHead":"b8574622745725834d4944e5069f3bbd708c2b64","homepage":"https://github.com/akki91/ankr-mcp#readme","_nodeVersion":"22.0.0","_npmVersion":"10.5.1","dist":{"integrity":"sha512-7HgXoPF2tj3tE850c//7FzhgsiLG0t+pokFlAkTF5c0hrd+3kb5ftcR+2v0Sww5a3vndFQk5/9lQh4KIIy1A2Q==","shasum":"e1532636ea55a523c7b19a274b6ea069b62bad72","tarball":"https://registry.npmjs.org/@akki91/ankr-mcp/-/ankr-mcp-0.1.0.tgz","fileCount":9,"unpackedSize":56671,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIF0h0oQHhf82mvJ67CfhS7Nkol3ZeskHrG8AQ+yH1uTjAiEAiZBnBJ8WrAL8m1DgsNqKGbbVzs7XtGL+l5cp3tEe5Zs="}]},"_npmUser":{"name":"akki91","email":"akshaykhare91@gmail.com"},"directories":{},"maintainers":[{"name":"akki91","email":"akshaykhare91@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ankr-mcp_0.1.0_1776707588753_0.5667039671429301"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-31T13:25:22.984Z","modified":"2026-04-20T17:53:09.024Z","0.0.1":"2025-03-31T13:25:23.289Z","0.1.0":"2026-04-20T17:53:08.913Z"},"bugs":{"url":"https://github.com/akki91/ankr-mcp/issues"},"author":{"name":"Akshay khare"},"license":"MIT","homepage":"https://github.com/akki91/ankr-mcp#readme","repository":{"type":"git","url":"git+https://github.com/akki91/ankr-mcp.git"},"description":"MCP server for using Ankr API(s)","maintainers":[{"name":"akki91","email":"akshaykhare91@gmail.com"}],"readme":"#  Ankr API MCP Server\n\n\nMCP (Model Context Protocol) server for blockchain data through the [Ankr](https://www.ankr.com/docs/) API.\n\n\n## Overview\n\nThe Ankr MCP Server fetches on-chain data via the Ankr API. It implements the MCP to allow LLMs to query blockchain data across 20+ chains.\n\n## Features\n\nThe server provides 21 tools across all Ankr Advanced API categories:\n\n### Token Operations\n\n- **Get Token Balances** (`get_token_balances`): Gets all token balances for a wallet on a specific blockchain\n- **Get Currencies** (`get_currencies`): Lists all available currencies on a blockchain\n- **Get Token Price** (`get_token_price`): Gets current USD price for any token\n- **Get Token Holders** (`get_token_holders`): Lists holder addresses for a token\n- **Get Token Holders Count** (`get_token_holders_count`): Gets historical holder count data\n- **Get Token Transfers** (`get_token_transfers`): Gets token transfer history for addresses\n- **Get Token Price History** (`get_token_price_history`): Gets historical price data over time\n- **Explain Token Price** (`explain_token_price`): Breaks down how a token price is derived\n\n### NFT Operations\n\n- **Get NFTs by Owner** (`get_nfts_by_owner`): Gets all NFTs owned by a wallet\n- **Get NFT Metadata** (`get_nft_metadata`): Gets metadata (name, image, traits) for a specific NFT\n- **Get NFT Holders** (`get_nft_holders`): Gets all holders of an NFT collection\n- **Get NFT Transfers** (`get_nft_transfers`): Gets NFT transfer history\n\n### Query Operations\n\n- **Get Blockchain Stats** (`get_blockchain_stats`): Gets chain statistics (transactions, block time, etc.)\n- **Get Blocks** (`get_blocks`): Gets full block data for a block range\n- **Get Logs** (`get_logs`): Gets historical event log data\n- **Get Transactions by Hash** (`get_transactions_by_hash`): Looks up a transaction by hash\n- **Get Transactions by Address** (`get_transactions_by_address`): Gets all transactions for an address\n- **Get Interactions** (`get_interactions`): Lists all chains a wallet has interacted with\n- **Get Account Balance Historical** (`get_account_balance_historical`): Gets balance at a past block height\n- **Get Internal Transactions by Block** (`get_internal_transactions_by_block`): Gets internal txns in a block\n- **Get Internal Transactions by Parent Hash** (`get_internal_transactions_by_parent_hash`): Gets internal txns from a parent tx\n\n## Installation\n\n```bash\nnpm install @akki91/ankr-mcp\n```\n\n## Usage\n\n### Environment Setup\n\nSet your ANKR API token by logging into ANKR api docs portal.\n\n```bash\nexport ANKR_API_TOKEN=your_api_token_here\n```\n\n### Running the Server\n\nThe server can be run directly from the command line:\n\n```bash\nnpx @akki91/ankr-mcp\n```\n\n### Usage with LLM Tools\n\nThis server implements the Model Context Protocol (MCP), which allows it to be used as a tool provider for compatible AI models.\n\n\n### Integration with AI Models\n\nTo integrate this server with AI applications that support MCP, add the following to your app's server configuration:\n\n\n```json\n{\n  \"mcpServers\": {\n    \"ankr-mcp\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"@akki91/ankr-mcp\"\n      ],\n      \"env\": {\n        \"ANKR_API_TOKEN\": \"your_api_token_here\"\n      }\n    }\n  }\n}\n```\n### Integrating Ankr MCP Tools in Claude Desktop\n\nFollow the instructions below to update your settings and ensure that your MCP server is available within Claude Desktop.\n\n#### Step 1: Access Settings in Claude Desktop\n\n1. Launch **Claude Desktop**.\n2. From the main menu, navigate to **Settings**.\n\n#### Step 2: Update Developer Settings\n\n1. Open the **Developer Settings**.\n2. Edit the configuration file that contains your MCP server definitions.\n3. If MCP servers are already listed, append your Ankr MCP configuration to the existing list. Otherwise, copy and paste the entire above configuration for the Ankr MCP server.\n\n#### Step 3: Restart Claude Desktop\n\n1. Close the **Developer Settings** menu.\n2. Restart **Claude Desktop** to apply the changes.\n\n#### Step 4: Verify Integration\n\n1. Once Claude Desktop has restarted, click on the **Tools Icon** located just below the chat prompt.\n2. Verify that the list of tools provided by the Ankr MCP server is visible and accessible.\n\nBy following these steps, your Ankr MCP configuration should now be integrated into Claude Desktop, allowing you to access its tools directly through the interface.\n\n### Sample Chat Prompts\n\nHere are example prompts you can use with this MCP server in Claude or any compatible AI:\n\n#### Token Queries\n```\nWhat are the token balances for 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum?\n```\n```\nWhat's the current price of USDC on Ethereum?\n```\n```\nShow me the price history of ETH over the last 30 days.\n```\n```\nHow many holders does the LINK token have on Ethereum?\n```\n```\nShow me recent token transfers for vitalik.eth on Polygon.\n```\n\n#### NFT Queries\n```\nWhat NFTs does 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 own?\n```\n```\nGet me the metadata for Bored Ape #1234.\n```\n```\nWho holds NFTs from the CryptoPunks collection?\n```\n```\nShow me recent NFT transfers for this wallet on Ethereum.\n```\n\n#### Blockchain & Transaction Queries\n```\nWhat are the current stats for Ethereum and Polygon?\n```\n```\nWhich blockchains has wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 interacted with?\n```\n```\nLook up transaction 0x1234abcd... and decode the logs.\n```\n```\nShow me the latest blocks on Arbitrum with transactions included.\n```\n```\nWhat were the internal transactions in Ethereum block 19000000?\n```\n```\nWhat was my wallet balance at block 17000000?\n```\n## Development\n\n### Building from Source\n\n```bash\n# Clone the repository\ngit clone https://github.com/akki91/ankr-mcp.git\ncd ankr-mcp\n\n# Install dependencies\nnpm install\n\n# Build the project\nnpm run build\n```\n\n### Running Tests\n\n```bash\nnpm test\n```\n\n### Debug Mode\nDebugging for this project is supported using [MCP Inspector](https://github.com/modelcontextprotocol/inspector)\n\n```bash\nnpm run debug\n```\n\n\n### Sources \nThis project is inspired from list of servers created [here](https://github.com/modelcontextprotocol/servers/) \n","readmeFilename":"README.md"}