MCP Hub
Back to servers

Onesource MCP

MCP server with 43 tools for blockchain data — token lookups, wallet balances, live chain queries across 10+ networks, and full API documentation search.

glama
Updated
Mar 27, 2026

@one-source/mcp

Unified MCP server for OneSource — 31 tools for blockchain data, live chain queries, and API documentation in a single server.

Combines @one-source/api-mcp (22 tools) and @one-source/docs-mcp (9 tools) so your AI assistant gets full access to OneSource with one MCP connection.

What is MCP? The Model Context Protocol lets AI assistants call tools and access data sources. This server exposes both the OneSource blockchain API and its documentation as tools.

Quick Start

Claude Code

claude mcp add onesource -- npx @one-source/mcp

Claude Desktop / Cursor

Add to your MCP config:

{
  "mcpServers": {
    "onesource": {
      "command": "npx",
      "args": ["-y", "@one-source/mcp"]
    }
  }
}

Any MCP Client (stdio)

npx @one-source/mcp

HTTP Server (self-hosted)

npx @one-source/mcp --http
npx @one-source/mcp --http --port=8080

Then connect your MCP client to http://localhost:3000/.

Health check: GET http://localhost:3000/health

Tools (31)

Blockchain API — Live Chain (12 tools)

ToolDescription
1s_allowance_liveERC20 allowance check
1s_contract_info_liveContract type detection via ERC165
1s_erc1155_balance_liveERC1155 balance via RPC
1s_erc20_balance_liveERC20 balance via balanceOf
1s_erc20_transfers_liveERC20 Transfer logs via eth_getLogs
1s_erc721_tokens_liveERC721 token enumeration
1s_events_liveEvent logs via eth_getLogs
1s_multi_balance_liveETH + multiple ERC20 balances
1s_nft_metadata_liveNFT metadata via tokenURI
1s_nft_owner_liveNFT owner via ownerOf
1s_total_supply_liveToken total supply
1s_tx_details_liveTransaction + receipt via RPC

Blockchain API — Chain Utilities (10 tools)

RPC only.

ToolDescription
1s_contract_codeContract bytecode
1s_ens_resolveENS name/address resolution
1s_estimate_gasGas estimation
1s_network_infoChain ID, block number, gas price
1s_nonceTransaction count
1s_pending_blockPending block from mempool
1s_proxy_detectProxy contract detection
1s_simulate_callSimulate eth_call
1s_storage_readRead storage slot
1s_tx_receiptTransaction receipt

Documentation (9 tools)

Read-only, no API key required.

ToolPurposeWhen to use
search_docsKeyword search across all documentationFinding guides, concepts, or API patterns
get_query_referenceFull reference for a root GraphQL queryBuilding a specific query with correct args/filters
get_type_definitionSchema definition for any type/enum/inputUnderstanding field shapes and return types
list_examplesBrowse or search working GraphQL examplesFinding ready-to-use query patterns
list_supported_chainsAll supported blockchain networks + endpointsFirst question: "What chains are supported?"
get_filter_referenceFilter fields and operators for a list queryBuilding filtered queries with correct syntax
get_pagination_guideCursor-based pagination pattern with examplesImplementing pagination for list queries
get_schema_overviewHigh-level summary of the entire schemaExploring the API surface before diving in
get_authentication_guideAPI key format, headers, and endpointsSetting up authentication for the first time

Networks

All blockchain API tools accept an optional network parameter:

NetworkDescription
ethereumEthereum mainnet (default)
sepoliaEthereum Sepolia testnet
avaxAvalanche C-Chain

Payment (x402)

Blockchain API endpoints are priced in USDC on Base via x402. When the backend has payments enabled, tool calls return a 402 with payment details. Agents using @x402/fetch handle this automatically.

Documentation tools are always free — no API key or authentication needed.

Environment Variables

VariableDefaultDescription
ONESOURCE_BASE_URLhttps://skills.onesource.ioAPI base URL
ONESOURCE_ANALYTICSSet to false to disable analytics
ONESOURCE_ANALYTICS_URLDashboard endpoint for analytics
X402_ANALYTICS_KEYAPI key for dashboard analytics
X402_PRIVATE_KEYEVM private key (hex, 0x-prefixed) for automatic x402 USDC payments on Base

Troubleshooting

npx hangs with no output That's normal — stdio mode waits for JSON-RPC input on stdin. Use --http if you want an HTTP server you can curl.

Port already in use Specify a different port: npx @one-source/mcp --http --port=8080

Tools return "Data files may be missing" Try reinstalling: npm install @one-source/mcp

"Type not found" even though it exists Type names are case-insensitive but must match the GraphQL name (e.g. Transaction, not transaction_type). The tool will suggest close matches.

License

Apache 2.0 — see LICENSE for details.

Reviews

No reviews yet

Sign in to write a review