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.
README
@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)
| Tool | Description |
|---|---|
1s_allowance_live |
ERC20 allowance check |
1s_contract_info_live |
Contract type detection via ERC165 |
1s_erc1155_balance_live |
ERC1155 balance via RPC |
1s_erc20_balance_live |
ERC20 balance via balanceOf |
1s_erc20_transfers_live |
ERC20 Transfer logs via eth_getLogs |
1s_erc721_tokens_live |
ERC721 token enumeration |
1s_events_live |
Event logs via eth_getLogs |
1s_multi_balance_live |
ETH + multiple ERC20 balances |
1s_nft_metadata_live |
NFT metadata via tokenURI |
1s_nft_owner_live |
NFT owner via ownerOf |
1s_total_supply_live |
Token total supply |
1s_tx_details_live |
Transaction + receipt via RPC |
Blockchain API — Chain Utilities (10 tools)
RPC only.
| Tool | Description |
|---|---|
1s_contract_code |
Contract bytecode |
1s_ens_resolve |
ENS name/address resolution |
1s_estimate_gas |
Gas estimation |
1s_network_info |
Chain ID, block number, gas price |
1s_nonce |
Transaction count |
1s_pending_block |
Pending block from mempool |
1s_proxy_detect |
Proxy contract detection |
1s_simulate_call |
Simulate eth_call |
1s_storage_read |
Read storage slot |
1s_tx_receipt |
Transaction receipt |
Documentation (9 tools)
Read-only, no API key required.
| Tool | Purpose | When to use |
|---|---|---|
search_docs |
Keyword search across all documentation | Finding guides, concepts, or API patterns |
get_query_reference |
Full reference for a root GraphQL query | Building a specific query with correct args/filters |
get_type_definition |
Schema definition for any type/enum/input | Understanding field shapes and return types |
list_examples |
Browse or search working GraphQL examples | Finding ready-to-use query patterns |
list_supported_chains |
All supported blockchain networks + endpoints | First question: "What chains are supported?" |
get_filter_reference |
Filter fields and operators for a list query | Building filtered queries with correct syntax |
get_pagination_guide |
Cursor-based pagination pattern with examples | Implementing pagination for list queries |
get_schema_overview |
High-level summary of the entire schema | Exploring the API surface before diving in |
get_authentication_guide |
API key format, headers, and endpoints | Setting up authentication for the first time |
Networks
All blockchain API tools accept an optional network parameter:
| Network | Description |
|---|---|
ethereum |
Ethereum mainnet (default) |
sepolia |
Ethereum Sepolia testnet |
avax |
Avalanche 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
| Variable | Default | Description |
|---|---|---|
ONESOURCE_BASE_URL |
https://skills.onesource.io |
API base URL |
ONESOURCE_ANALYTICS |
— | Set to false to disable analytics |
ONESOURCE_ANALYTICS_URL |
— | Dashboard endpoint for analytics |
X402_ANALYTICS_KEY |
— | API key for dashboard analytics |
X402_PRIVATE_KEY |
— | EVM 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。