{
  "markdown": "# @cryptoapis-io/mcp-utils\n\nMCP server for [Crypto APIs](https://cryptoapis.io/) Utils product. Validate addresses, decode raw transactions, and XRP X-Address encode/decode.\n\n> **API Version:** Compatible with Crypto APIs version **2024-12-12**\n\n## Features\n\n- **UTXO utils:** Validate address, decode raw transaction hex (bitcoin, bitcoin-cash, litecoin, dogecoin, dash, zcash)\n- **EVM utils:** Validate address, decode raw transaction hex\n- **XRP utils:** Validate address, decode X-Address, encode X-Address\n- **Derive addresses:** Derive HD wallet (xPub/yPub/zPub) change or receiving addresses without syncing\n\n## Prerequisites\n\n1. [Register at Crypto APIs](https://app.cryptoapis.io/signup)\n2. [Generate an API key](https://app.cryptoapis.io/api-keys)\n\n## Installation\n\n```bash\nnpm install @cryptoapis-io/mcp-utils\n```\n\nOr install all Crypto APIs MCP servers: `npm install @cryptoapis-io/mcp`\n\n## Usage\n\n```bash\n# Run with API key\nnpx @cryptoapis-io/mcp-utils --api-key YOUR_API_KEY\n\n# Or use environment variable\nexport CRYPTOAPIS_API_KEY=YOUR_API_KEY\nnpx @cryptoapis-io/mcp-utils\n\n# HTTP transport\nnpx @cryptoapis-io/mcp-utils --transport http --port 3000 --api-key YOUR_API_KEY\n```\n\n### Claude Desktop\n\nAdd to your Claude Desktop config (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS, `%APPDATA%\\Claude\\claude_desktop_config.json` on Windows):\n\n```json\n{\n  \"mcpServers\": {\n    \"cryptoapis-utils\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@cryptoapis-io/mcp-utils\"],\n      \"env\": {\n        \"CRYPTOAPIS_API_KEY\": \"your_api_key_here\"\n      }\n    }\n  }\n}\n```\n\n### Cursor\n\nAdd to `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` (global):\n\n```json\n{\n  \"mcpServers\": {\n    \"cryptoapis-utils\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@cryptoapis-io/mcp-utils\"],\n      \"env\": {\n        \"CRYPTOAPIS_API_KEY\": \"your_api_key_here\"\n      }\n    }\n  }\n}\n```\n\n### MCP Inspector\n\n```bash\nnpx @modelcontextprotocol/inspector npx @cryptoapis-io/mcp-utils --api-key YOUR_API_KEY\n```\n\n### n8n\n\n1. Start the server in HTTP mode:\n   ```bash\n   npx @cryptoapis-io/mcp-utils --transport http --port 3000 --api-key YOUR_API_KEY\n   ```\n2. In your n8n workflow, add an **AI Agent** node\n3. Under **Tools**, add an **MCP Client Tool** and set the URL to `http://localhost:3000/mcp`\n\n> All servers default to port 3000. Use `--port` to assign different ports when running multiple servers.\n\n## Available Tools\n\n### `utxo_utils`\n\n| Action | Description |\n|--------|-------------|\n| `validate-address` | Check if a UTXO address is valid. Requires blockchain, network, address |\n| `decode-raw-transaction` | Decode a raw transaction hex. Requires blockchain, network, rawTransactionHex |\n| `convert-bitcoin-cash-address` | Convert Bitcoin Cash address between legacy and CashAddr formats. Requires network, address (Bitcoin Cash only, no blockchain parameter) |\n\n**Supported Blockchains:** bitcoin, bitcoin-cash, litecoin, dogecoin, dash, zcash\n\n### `evm_utils`\n\n| Action | Description |\n|--------|-------------|\n| `validate-address` | Check if an EVM address is valid. Requires blockchain, network, address |\n| `decode-raw-transaction` | Decode a raw transaction hex. Requires blockchain, network, rawTransactionHex |\n\n### `xrp_utils`\n\n| Action | Description |\n|--------|-------------|\n| `validate-address` | Check if an XRP address is valid. Requires network, address |\n| `decode-x-address` | Decode X-Address to classic address and tag. Requires network, xAddress |\n| `encode-x-address` | Encode classic address and tag to X-Address. Requires network, classicAddress, addressTag |\n\n### `derive_addresses`\n\nDerive HD wallet (xPub/yPub/zPub) change or receiving addresses without syncing. Derives up to 10 addresses per call.\n\n| Parameter | Description |\n|-----------|-------------|\n| `blockchain` | Target blockchain |\n| `network` | Network name |\n| `extendedPublicKey` | xPub/yPub/zPub for the HD wallet |\n| `addressFormat` | Address format (optional): p2pkh, p2sh, p2wpkh, standard, p2sh-cash, p2pkh-cash, classic, base58 |\n| `addressesCount` | Number of addresses to derive, up to 10 (optional) |\n| `isChange` | If true, derive change address(es); if false, derive receiving/deposit (optional, UTXO only) |\n| `startIndex` | Starting index for derivation (optional) |\n\n**Supported Blockchains:** bitcoin, bitcoin-cash, litecoin, dogecoin, dash, zcash, ethereum, ethereum-classic, binance-smart-chain, xrp, tron\n\n## CLI Arguments\n\n| Argument | Description | Default |\n|----------|-------------|---------|\n| `--api-key` | Crypto APIs API key | `CRYPTOAPIS_API_KEY` env var |\n| `--transport` | Transport type: `stdio` or `http` | `stdio` |\n| `--host` | HTTP host | `0.0.0.0` |\n| `--port` | HTTP port | `3000` |\n| `--path` | HTTP path | `/mcp` |\n| `--stateless` | Enable stateless HTTP mode | `false` |\n\n### HTTP API Key Modes\n\nWhen using HTTP transport, the server supports two API key modes:\n\n- **With `--api-key`:** The key is used for all requests. `x-api-key` request headers are ignored.\n- **Without `--api-key`:** Each request must include an `x-api-key` header with a valid Crypto APIs key. This enables hosting a public server where each user provides their own key.\n\n```bash\n# Per-request key mode (multi-tenant)\nnpx @cryptoapis-io/mcp-utils --transport http --port 3000\n# Clients send x-api-key header with each request\n```\n\n> Stdio transport always requires an API key at startup.\n\n## Important: API Key Required\n\n> **Warning:** Making requests without a valid API key — or with an incorrect one — may result in your IP being banned from the Crypto APIs ecosystem. Always ensure a valid API key is configured before starting any server.\n\n## Remote MCP Server\n\nCrypto APIs provides an official remote MCP server with all tools available via HTTP Streamable transport at [https://ai.cryptoapis.io/mcp](https://ai.cryptoapis.io/mcp). Pass your API key via the `x-api-key` header — no installation required.\n\n## License\n\nMIT\n\n",
  "bytes": 5959,
  "sha": "b25f5ba420a642bd8f7dc382bb6d3604374165f4f3f5df60e33a68d6cd16134e",
  "repo_slug": "cryptoapis-io/cryptoapis-mcp-utils",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_cryptoapis_io_mcp_utils_3c64c22e/readme"
}