modelscope·@MissionSquad/mcp-thorchain
暂无描述。
A Model Context Protocol (MCP) server providing access to THORChain blockchain data. This server enables AI assistants like Claude to query THORChain transactions, pools, network statistics, and vault addresses through a standardized interface.
npm install -g @missionsquad/mcp-thorchain
# Clone the repository
git clone https://github.com/MissionSquad/mcp-thorchain.git
cd mcp-thorchain
# Install dependencies
npm install
# Build the project
npm run build
To use this MCP server with 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": {
"thorchain": {
"command": "node",
"args": [
"/absolute/path/to/mcp-thorchain/dist/index.js"
]
}
}
}
Replace /absolute/path/to/mcp-thorchain with the actual path to your installation directory.
After adding the configuration:
You can test the server without Claude Desktop using the MCP Inspector:
npx @modelcontextprotocol/inspector node dist/index.js
This will open a web interface (usually at http://localhost:5173) where you can:
get-transactionGet detailed information about a specific THORChain transaction.
Parameters:
txid (string, required): Transaction hash (64-character hexadecimal string)Example:
{
"txid": "DC85CB537CB6082F61270D70C4058BB111475BCDC403E6E42AAF2106D067E1B4"
}
get-address-historyRetrieve transaction history for a blockchain address.
Parameters:
address (string, required): Blockchain address to querylimit (number, optional): Maximum transactions to return (default: 10, max: 50)offset (number, optional): Pagination offset (default: 0)Example:
{
"address": "thor1...",
"limit": 20,
"offset": 0
}
get-poolsGet statistics for all THORChain liquidity pools.
Parameters:
period (enum, optional): Time period - "1h" | "24h" | "7d" | "30d" | "90d" | "365d" | "all" (default: "24h")Example:
{
"period": "24h"
}
get-pool-detailGet detailed information for a specific liquidity pool.
Parameters:
asset (string, required): Pool asset identifier (e.g., "BTC.BTC", "ETH.ETH")Example:
{
"asset": "BTC.BTC"
}
get-network-statsGet overall THORChain network statistics.
Parameters: None
get-vault-addressesGet current THORChain vault addresses for depositing funds.
Parameters: None
The server automatically rotates between multiple API providers for redundancy:
Primary: Nine Realms (https://midgard.ninerealms.com, https://thornode.ninerealms.com)
Fallback: Liquify (https://midgard.thorchain.liquify.com, https://thornode.thorchain.liquify.com)
If the primary provider fails or times out, the server automatically tries the fallback provider.
npm run build
npm run watch
mcp-thorchain/
src/
index.ts # MCP server and tool definitions
api-client.ts # THORChain API client with provider rotation
types.ts # TypeScript type definitions
dist/ # Compiled JavaScript output
package.json
tsconfig.json
README.md
@modelcontextprotocol/sdk@1.22.0: MCP server SDKzod@3.23.8: Schema validationThe project uses TypeScript with strict mode enabled. Due to a known incompatibility between Zod v3.23.8 (bundled with the MCP SDK) and TypeScript's type inference, the main server file uses @ts-nocheck. Runtime validation and type safety are maintained through Zod schemas.
THORChainAPIError class for API-specific errorsclaude_desktop_config.json is absolute and correctnpm run build)~/Library/Logs/Claude/mcp-server-thorchain.log%APPDATA%\Claude\logsIf you encounter build errors after updating dependencies:
# Clean and rebuild
rm -rf dist node_modules package-lock.json
npm install
npm run build
The server has a 5-second timeout for each API request. If you're experiencing frequent timeouts:
For detailed THORCh…
一座通过模型控制协议(Model Control Protocol)将Dune Analytics区块链数据连接到人工智能应用的桥梁,使大型语言模型(LLMs)能够通过自然语言交互访问链上数据。
暂无描述。
暂无描述。
暂无描述。
暂无描述。
贸易代理