MCP Contracts logo

MCP Contracts

Look up token details by contract address on supported EVM blockchains and Solana networks through Crypto APIs.

Install MCP Contracts

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-contracts": {
      "command": "npx",
      "args": [
        "-y",
        "@cryptoapis-io/mcp-contracts"
      ],
      "env": {
        "CRYPTOAPIS_API_KEY": "YOUR_VALUE_HERE",
        "MCP_AUTH_TOKEN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env CRYPTOAPIS_API_KEY=YOUR_VALUE_HERE --env MCP_AUTH_TOKEN=YOUR_VALUE_HERE --transport stdio mcp-contracts -- npx -y @cryptoapis-io/mcp-contracts

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @cryptoapis-io/mcp-contracts

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

mcp-contracts connects MCP clients to Crypto APIs' Contracts product for token lookups on selected EVM chains and Solana. Its two tools return contract-based token details, including fields such as name, symbol, standard, decimals, and total supply where supported. Run it over stdio for local clients or HTTP for integrations such as n8n and remote callers. Reach for it when an agent needs to identify a token from its on-chain contract address.

Use cases

  • Identify an EVM token from its contract address
  • Look up Solana token metadata for an agent workflow
  • Add contract-based token discovery to an n8n workflow
  • Run address lookups from Claude Desktop or Cursor

Key features

  • EVM token details by contract address
  • Solana token details by contract address
  • stdio and HTTP transports
  • Shared or per-request API key authentication
  • Configurable HTTP host, port, path, and host allowlist
  • Stateless HTTP mode

Tools2

What MCP Contracts lets your agent do. Expand a tool for its parameters.

Self-reported~30 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

31/31 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · @cryptoapis-io/mcp-contracts (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads678Package downloads in the last 30 days.
Last commit22d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed2Callable tools this server registers over MCP.

How MCP Contracts works

What mcp-contracts does

mcp-contracts exposes Crypto APIs contract-data operations through the Model Context Protocol. It focuses on token metadata retrieved from a contract address rather than general blockchain activity or transaction analysis.

The server covers two blockchain families:

  • EVM contract lookups for Ethereum, Ethereum Classic, and Binance Smart Chain environments listed by the API.
  • Solana token lookups on mainnet and devnet.

For EVM responses, the available token fields include the token name, symbol, standard, decimal precision, and total supply. Solana lookups retrieve token details by address through the corresponding Crypto APIs operation.

How it works

Install the npm package and start the process with a Crypto APIs API key. The default stdio transport is intended for MCP clients that launch local servers. HTTP transport is also available and listens on localhost by default, exposing the MCP endpoint at /mcp.

HTTP deployments can use one API key for all requests or omit the startup key and require callers to send their own x-api-key header. When accepting connections beyond the local machine, bind explicitly, restrict permitted host headers with --allowed-hosts, and protect the server with a bearer token or per-request API keys. The server supports stateless HTTP mode through a command-line option.

Setup and configuration

Create a Crypto APIs account and generate an API key before starting the server. Install the package with:

Terminal
npm install @cryptoapis-io/mcp-contracts

A local stdio launch can use either a command-line key or the CRYPTOAPIS_API_KEY environment variable:

Terminal
npx @cryptoapis-io/mcp-contracts --api-key YOUR_API_KEY

For HTTP mode, specify the transport and, if needed, a different port or host:

Terminal
npx @cryptoapis-io/mcp-contracts --transport http --port 3000 --api-key YOUR_API_KEY

Supported options include --transport, --host, --auth-token, --allowed-hosts, --port, --path, and --stateless. MCP_AUTH_TOKEN is preferred over placing the bearer token directly in command-line arguments because process listings can expose command-line values.

Claude Desktop and Cursor configurations can launch the package with npx and pass the API key through the environment. n8n can connect through an MCP Client Tool pointed at the HTTP endpoint.

Tools and capabilities

  • evm_contract_data: retrieves token details using a blockchain, network, and contract address.
  • solana_contract_data: retrieves Solana token details using a network and contract address.
  • EVM environments include Ethereum mainnet, Ethereum Classic Mordor, and Binance Smart Chain mainnet, with testnet and Sepolia support as listed by the service.
  • Solana environments include mainnet and devnet.
  • HTTP clients can authenticate with a shared startup API key or provide an API key per request.

Limitations and notes

Contract token details are currently available only for Ethereum, Ethereum Classic, and Binance Smart Chain among EVM networks. Solana support is limited to mainnet and devnet. A valid Crypto APIs key is required for stdio startup and for authenticated API requests; invalid or missing keys may cause Crypto APIs to reject requests and can result in IP restrictions.

HTTP mode binds to 127.0.0.1 by default. Remote or containerized access requires an explicit non-loopback bind and appropriate authentication. When running behind n8n in Docker, the host address and bearer-token configuration need to account for the container network. The package is licensed under MIT.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Contracts

mcp-contracts is an MCP server that connects AI clients to Crypto APIs' Contracts product and exposes tools for retrieving token details by contract address. It supports selected Ethereum, Ethereum Classic, and Binance Smart Chain environments through evm_contract_data, plus Solana mainnet and devnet through solana_contract_data.

Install it with `npm install @cryptoapis-io/mcp-contracts`, then start it with `npx @cryptoapis-io/mcp-contracts`. Provide a Crypto APIs key using `--api-key` or the `CRYPTOAPIS_API_KEY` environment variable.

Yes, mcp-contracts works with Claude Desktop through a local stdio configuration. Add an MCP server entry that runs the package with `npx` and place the Crypto APIs key in the entry's environment settings.

Yes, mcp-contracts works with Cursor through its project or global `.cursor/mcp.json` configuration. Configure Cursor to launch the package with `npx` and provide `CRYPTOAPIS_API_KEY` in the server environment.

Run mcp-contracts in HTTP mode and add an MCP Client Tool under an n8n AI Agent's tools. Use the server URL ending in `/mcp`; for Docker deployments, use a host address reachable from the container and configure the required bearer-token header when applicable.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Contracts AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-contracts?style=directory)](https://allmcps.com/mcp/mcp-contracts)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-contracts"><img src="https://allmcps.com/api/badge/mcp-contracts?style=directory" alt="MCP Contracts on AllMCPs" /></a>