crypto-knowledge
Enables AI agents to perform complex crypto operations like cross-chain routing, contract decoding, portfolio management, and anti-rug security checks, returning unsigned transactions for safe signing by the agent.
README
Crypto-Knowledge
The on-chain brain for autonomous AI agents. An MCP server that lets agents perform complex crypto operations — cross-chain routing, contract decoding, portfolio & allowance management, gas/profit estimation and anti-rug security checks — safely and deterministically.
Keystore-free by design. The server never holds private keys and never signs. Every write action returns an unsigned, ready-to-sign transaction; the agent signs it with its own wallet. The server is multi-tenant and stateless — bring your own address, get back data + unsigned transactions.
Tools (11)
| Tool | What it does |
|---|---|
route |
Best cross-chain route between any chains/tokens (e.g. CRO → SOL). Queries LiFi + deBridge in parallel, compares output, returns the best route plus alternatives, each with a ready-to-sign transaction. |
pumpfun |
Direct on-chain pump.fun reads: live bonding-curve reserves, price, graduation progress, market cap, and resolved IPFS metadata. |
profitability |
EIP-1559 multi-chain gas estimation + net-profit verdict after gas & slippage (arbitrage guard). |
abi |
Fetch any verified EVM contract's ABI (Etherscan V2 / Sourcify), follow EIP-1967 proxies, and tell the agent exactly which parameters each function needs. Decode/encode calldata — decode_calldata even works on unverified contracts via a 4byte-directory selector lookup. Cached. |
portfolio |
Multi-chain balances (native + ERC-20 + SPL) and ERC-20 allowance management (check / approve / revoke) returning unsigned transactions. |
security |
Anti-rug scan via GoPlus + honeypot.is (EVM and Solana): honeypot/non-transferable, taxes, liquidity locks, mint/freeze/blacklist/pause powers, holder concentration → 0-100 risk score with red flags. |
mev_protection |
Private-RPC guidance (Flashbots Protect, MEV Blocker) + per-chain sandwich risk so the agent broadcasts safely. |
whale_watch |
Recent large ERC-20 transfers ("whale moves") for a token over a block window, decoded + sorted. |
solana_swap |
Quote & build same-chain Solana swaps via Jupiter (e.g. SOL→USDC, buy a graduated pump token) — returns a serialized unsigned transaction. |
simulate |
Dry-run an EVM transaction (eth_call) before signing and decode the revert reason (Error/Panic/custom) — never burn gas on a doomed tx. |
catalog |
Discovery: lists every tool, supported chain (id/native asset) and provider mode so an agent can self-configure. |
Supported chains
Ethereum, Base, Arbitrum, Optimism, Polygon, Cronos, ApeChain, BNB Smart Chain, Avalanche, Solana (10). Chain-agnostic by design — adding a chain is a single registry entry (src/registry/chains.ts).
Quick start
npm install
cp .env.example .env # optional keys — everything degrades to public RPC without them
npm test # 31 deterministic unit tests
npm run dev # run the MCP server over stdio
Use it from an MCP client (e.g. Claude Code)
{
"mcpServers": {
"crypto-knowledge": {
"command": "npx",
"args": ["tsx", "/absolute/path/to/Crypto-Knowledge/src/index.ts"]
}
}
}
Provider modes (per call)
The caller chooses how RPC/data is sourced:
open— public RPCs only. Free, but limited data (e.g. no ERC-20 auto-discovery) and lower rate limits.own_key⭐ recommended — pass your own freeheliusKey/alchemyKey. Best performance, your quota. Keys are used transiently and never stored or logged.tool— use the operator's keys (never exposed). Reserved for NFT-holders / paid tier when access gating is enabled.
Get a free key at helius.dev (Solana) and alchemy.com (EVM). The tool will nudge you when you're on a degraded public RPC.
Access & monetization (hosted mode)
When ACCESS_GATING_ENABLED=true (off by default for local stdio use):
- Holder — owns the configured gating NFT (on-chain verified) → free, higher limits, may use the tool's keys.
- Paid — $0.10 per request via x402.
- Free — public-RPC tier with conservative limits.
Architecture
agent ──▶ MCP tools (6 modules)
└─ core: RPC pool · retry/backoff · canonical errors · provider resolver
└─ access: sliding-window rate limit · NFT gate
returns ONLY unsigned tx + data → agent signs locally
See ARCHITECTURE.md for the full design, JSON I/O specs and R&D roadmap.
Security
- No private keys, ever. Read + build-unsigned-tx only.
- Operator keys are server-side only and never echoed to callers.
- Caller-supplied keys are transient (never persisted/logged).
License
MIT
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。