Skip to main content
Glama
anchain-data-mcp
by AnChainAI

AnChain.ai Data API & MCP

Model Context Protocol (MCP) server for the AnChain.AI Data API - a comprehensive blockchain intelligence platform powered by AI/ML that enables developers, investigators, and compliance officers to manage risk and ensure regulatory compliance in Web3 applications.

Features

Intelligence APIs

Core risk assessment and entity identification for blockchain addresses and transactions, delivering real-time risk scores, category labels, and suspicious activity detection.

Analytics APIs

Advanced behavioral analysis and transaction flow tracking, including statistical insights, attribution analysis, transaction graphs, automated tracing, and smart contract analysis.

Sanctions APIs

Comprehensive screening against global watchlists, including OFAC and international sanctions databases from multiple jurisdictions (US, EU, UK, Canada, Australia, Switzerland, Israel, Japan, UN, South Africa, and Zambia).

Insights APIs

Curated threat intelligence and industry news aggregation from specialized blockchain and cryptocurrency sources.

Related MCP server: web3-mcp

Requirements

  • Python 3.12 or higher

  • uv package manager

Installation

  1. Install uv if you haven't already:

pip install uv
  1. Clone this repository:

git clone <repository-url>
cd anchain-data-mcp
  1. Initialize the project and install dependencies:

uv init
uv sync

This will set up the virtual environment and install all required packages from your project configuration.

Configuration

Get Your API Key

Sign up and obtain your AnChain API key at: https://data.anchainai.com

Full API documentation is also available at the same URL.

Configure Claude Desktop

Add the following configuration to your Claude Desktop config file:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "anchain-data": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/anchain-data-mcp",
        "mcp_server.py",
        "--ANCHAIN_APIKEY",
        "your_api_key_here"
      ]
    }
  }
}

Replace /path/to/anchain-data-mcp with the actual path to your project folder and your_api_key_here with your AnChain API key.

Configure Cursor

Add the following to your Cursor MCP settings file mcp.json:

{
  "mcpServers": {
    "anchain-data": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/anchain-data-mcp",
        "mcp_server.py",
        "--ANCHAIN_APIKEY",
        "your_api_key_here"
      ]
    }
  }
}

Configure Other MCP-Compatible Platforms

For other AI platforms that support the Model Context Protocol (such as Zed, Sourcegraph Cody, or custom integrations), add a similar configuration to their MCP settings file:

{
  "mcpServers": {
    "anchain-data": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/anchain-data-mcp",
        "mcp_server.py",
        "--ANCHAIN_APIKEY",
        "your_api_key_here"
      ]
    }
  }
}

Consult your platform's documentation for the exact location of the MCP configuration file.

Usage

Once configured, the AnChain Data MCP server will be available in Claude Desktop. You can ask Claude to:

  • Assess blockchain address risks

  • Screen addresses against sanctions lists

  • Analyze transaction patterns

  • Investigate smart contracts

  • Access blockchain intelligence and news

The MCP server exposes all AnChain.AI Data API capabilities as tools that Claude can use automatically based on your requests.

Documentation

For detailed API documentation and capabilities, visit: https://data.anchainai.com

License

This project is licensed under the GPL License.

Support

For issues, questions, or feature requests, please refer to the AnChain.AI documentation or contact support through https://data.anchainai.com

Available Tools

20 tools
auto_trace_addressA

Automatically trace the flow of transactions from a wallet address across multiple hops. May take up to 5 minutes.

Args: proto: Blockchain protocol (btc, eth, trx, xrp) address: Blockchain address to trace (e.g. 1ECeZBxCVJ8Wm2JSN3Cyc6rge2gnvD3W5K) direct: Transaction direction filter (in, out) time_from: Start timestamp for analysis (Unix timestamp, e.g. 1577836800) time_to: End timestamp for analysis (Unix timestamp, e.g. 1609459200)

Cost: 200 credits

Inputs: proto (required), direct (required), address (required), time_to (required), +1 more. Returns: object

bulk_address_labelA

Retrieve address category labels and related entity information for multiple blockchain addresses (up to 10) in a single request.

Args: proto: Blockchain protocol (btc, eth, xlm, xmr, bnb, matic, avax, sol, trx, ada, dot, ltc, bch, algo, xrp) addresses: List of blockchain addresses to query (1-10 addresses)

Cost: 50 credits

Inputs: proto (required), addresses (required). Returns: object

bulk_address_risk_scoreA

Retrieve address risk scores, risk levels, and categories for multiple blockchain addresses (up to 10) in one request.

Args: proto: Blockchain protocol (btc, eth, xlm, xmr, bnb, matic, avax, sol, trx, ada, dot, ltc, bch, algo, xrp) addresses: List of blockchain addresses to query (1-10 addresses)

Cost: 100 credits

Inputs: proto (required), addresses (required). Returns: object

fuzzy_search_global_sanctionsA

Perform fuzzy text matching across international sanctions databases for broader and more comprehensive coverage.

Args: q: Fuzzy search query (e.g. Kesklinna) dataset: Global sanctions dataset to search in (global, au, ca, ch, eu, gb, il, jp, un, za, zm). Default: global

Cost: 200 credits

Inputs: q (required), dataset. Returns: object

fuzzy_search_ofacA

Perform fuzzy text matching across the OFAC sanctions database for names, addresses, and related fields.

Args: q: Fuzzy search query for broad text matching (e.g. bank corporation)

Cost: 100 credits

Inputs: q (required). Returns: object

get_address_attributionA

Analyze inflow and outflow activity of blockchain wallet addresses with entity-based attribution and percentage breakdowns.

Args: proto: Blockchain protocol (btc, eth, xlm) address: Blockchain address to query (e.g. bc1qm34lsc65zpw79lxes69zkqmk6ee3ewf0j77s3h)

Cost: 200 credits

Inputs: proto (required), address (required). Returns: object

get_address_labelB

Retrieve the category label for a blockchain address, including the associated entity when available.

Args: proto: Blockchain protocol (btc, eth, xlm, xmr, bnb, matic, avax, sol, trx, ada, dot, ltc, bch, algo, xrp) address: Blockchain address to query (e.g. 0x2f389ce8bd8ff92de3402ffce4691d17fc4f6535)

Cost: 5 credits

Inputs: proto (required), address (required). Returns: object

get_address_risk_scoreA

Retrieve an address risk score (0-100), risk level (1-4), category, and associated entity.

Args: proto: Blockchain protocol (btc, eth, xlm, xmr, bnb, matic, avax, sol, trx, ada, dot, ltc, bch, algo, xrp) address: Blockchain address to query (e.g. 1ECeZBxCVJ8Wm2JSN3Cyc6rge2gnvD3W5K)

Cost: 10 credits

Inputs: proto (required), address (required). Returns: object

get_address_statsA

Retrieve statistical insights for a blockchain address, including transaction volume, frequency, and behavioral patterns.

Args: proto: Blockchain protocol (btc, eth, xlm) address: Blockchain address to analyze (e.g. bc1qm34lsc65zpw79lxes69zkqmk6ee3ewf0j77s3h)

Cost: 100 credits

Inputs: proto (required), address (required). Returns: object

get_address_suspicious_activitiesA

Retrieve suspicious activity associated with a blockchain address, along with related risk scores, levels, and categories.

Args: proto: Blockchain protocol (btc, eth, xlm, xmr, bnb, matic, avax, sol, trx, ada, dot, ltc, bch, algo, xrp) address: Blockchain address to query (e.g. 1ECeZBxCVJ8Wm2JSN3Cyc6rge2gnvD3W5K)

Cost: 50 credits

Inputs: proto (required), address (required). Returns: object

get_contract_transactionA

Retrieve detailed information for smart contract transactions, including input data, state changes, and execution results.

Args: proto: Blockchain protocol (eth, bnb) transaction_hash: Transaction hash to analyze (e.g. 0xfd04466bb91ec4270172acffe187eea57145a906de9b488a0f410ade1569760e)

Cost: 300 credits

Inputs: proto (required), transaction_hash (required). Returns: object

get_crypto_newsA

Retrieve cryptocurrency and blockchain-related news and market information from multiple sources.

Args: query: Search query for cryptocurrency news (e.g. bitcoin price) category: News category filter (general, bitcoin, ethereum, defi, nft, regulation, exchange, mining)

Cost: 20 credits

Inputs: query, category. Returns: object

get_smart_contract_codeA

Analyze smart contract source code and related execution behavior to understand contract logic and activity.

Args: proto: Blockchain protocol (eth, bnb) contract_address: Smart contract address to analyze (e.g. 0xe924a9989d5bf8e8dea744deb390e6f4015b470c)

Cost: 300 credits

Inputs: proto (required), contract_address (required). Returns: object

get_transaction_detailB

Retrieve detailed on-chain information for a specific blockchain transaction.

Args: proto: Blockchain protocol (btc, eth, xrp, hash) hash: Transaction hash (e.g. 0xfd04466bb91ec4270172acffe187eea57145a906de9b488a0f410ade1569760e)

Cost: 50 credits

Inputs: hash (required), proto (required). Returns: object

get_transaction_graphA

Retrieve detailed transaction data with graph structures suitable for visualization and relationship analysis.

Args: proto: Blockchain protocol (currently only eth supported) hash: Transaction hash (e.g. 0xfd04466bb91ec4270172acffe187eea57145a906de9b488a0f410ade1569760e)

Cost: 100 credits

Inputs: hash (required), proto (required). Returns: object

screen_global_sanctions_addressA

Check whether a blockchain address appears on international sanctions lists from multiple countries and organizations.

Args: address: Blockchain address to screen (e.g. 0x7FF9cFad3877F21d41Da833E2F775dB0569eE3D9) dataset: Global sanctions dataset to search in (global, au, ca, ch, eu, gb, il, jp, un, za, zm). Default: global

Cost: 10 credits

Inputs: address (required), dataset. Returns: object

screen_ip_addressA

Analyze IP geolocation data and sanctions status to support regional compliance checks.

Args: ip_address: IP address to screen (IPv4 format, e.g. 1.2.3.4)

Cost: 5 credits

Inputs: ip_address (required). Returns: object

screen_ofac_addressA

Check whether a blockchain address is associated with entities listed on the OFAC sanctions list.

Args: address: Blockchain address to screen (e.g. 1ECeZBxCVJ8Wm2JSN3Cyc6rge2gnvD3W5K)

Cost: 5 credits

Inputs: address (required). Returns: object

search_global_sanctionsA

Search international sanctions databases using exact field matching across multiple jurisdictions.

Args: dataset: Global sanctions dataset to search in (global, au, ca, ch, eu, gb, il, jp, un, za, zm). Default: global type: Entity type (individual, entity, vessel, aircraft) name: Entity name address: Physical address country: Country or nationality birth_date: Date of birth legal_form: Legal entity type registration_number: Registration number incorporation_date: Incorporation date jurisdiction: Incorporation jurisdiction wallet: Cryptocurrency wallet addresses

Cost: 20 credits

Inputs: name, type, wallet, address, +7 more. Returns: object

search_ofacA

Search the OFAC sanctions database using exact field matching across names, identifiers, and related attributes.

Args: type: Entity type (individual, entity, vessel, aircraft) name: Full name first_name: First name (for individuals) last_name: Last name (for individuals) id: Crypto wallet addresses or identification numbers address: Street address city: City name state: State or province country: Country or nationality

Cost: 10 credits

Inputs: id, city, name, type, +5 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools target distinct resources or actions, such as address labeling, risk scoring, transaction details, and sanctions database searches. However, certain tools like get_transaction_detail and get_contract_transaction may be confused, though descriptions provide some clarity.

    Naming Consistency3/5

    Naming patterns are mixed: most tools use get_ or search_ prefixes, but there are deviations like bulk_address_label, auto_trace_address, and fuzzy_search_ofac. The lack of a uniform verb_noun structure makes the set slightly inconsistent.

    Tool Count3/5

    With 20 tools, the server is somewhat heavy but not excessive for its dual focus on blockchain analytics and sanctions screening. Several tools are near-duplicates (exact vs. fuzzy search, bulk vs. single address), which could be consolidated.

    Completeness4/5

    The tool surface covers core workflows, including address analytics, risk scoring, transaction tracing, and sanctions screening. Gaps include batch sanctions screening and comprehensive address transaction history, but these are not critical for the server's apparent purpose.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to access real-time on-chain crypto analytics, whale tracking, and market metrics through natural language queries. It provides access to over 245 endpoints for comprehensive data analysis of assets like Bitcoin, Ethereum, and stablecoins.
      7
      85 npm
      9
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables LLMs to interact with blockchain data across multiple chains (Ethereum, BSC, Polygon, Avalanche, etc.) via Ankr's Advanced API, supporting NFT, token, and query operations.
      9
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to access real-time crypto risk intelligence with two tools: Flare for precursor detection and Core for overall risk environment assessment.
      4
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to perform AML and compliance risk scoring for crypto addresses and transactions on Ethereum, BSC, TRON, TON, and Bitcoin, returning 0–100 risk scores, bands, flags, and detailed signals.
      2
      65 npm
      MIT