onchain-rag-mcp
v1.1.25
Published
onchain server for Model Context Protocol
Readme
Installation
Installing via Smithery
To install OnChain for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install onchain-mcp-server --client claudeManual Installation
# Run directly with npx
npx onchain-mcp-server --tenant-key 719 --address http://192.168.0.62:8017 --user-key YOUR_USER_KEY
# Or install globally
npm install -g onchain-mcp-server
onchain-mcp-server --tenant-key 719 --address http://192.168.0.62:8017 --user-key YOUR_USER_KEYUsage with Claude Desktop
Add to your Claude Desktop configuration file:
{
"onchain-mcp-server": {
"command": "npx",
"args": [
"onchain-mcp-server",
"tenant-key", "719",
"address", "your-api-key-here",
"user-key", "your-app-name-here"
]
}
}Available Tools
Instance
onchain_instance_material_get: queryMaterialByNumber
Development
# Install dependencies
npm install
# Run in development mode
npm run dev
# Build for production
npm run build
# Run production build
npm startRequirements
- Node.js >= 18
- An OnChain account with API credentials
License
MIT
配置1
"onchain-mcp-server": { "command": "npx", "args": ["-y","onchain-mcp-server","--tenant-key", "719", "--address", "http://192.168.0.62:8017", "--user-key", "1866744621058617345", "--user-name", "hny","--user-psw","123456", "--rag-address", "http://192.168.0.129:3000", "--user-id", "101"] }
配置2
"onchain-mcp-server": { "command": "node", "args": ["/Users/heningyuan/Public/mcp/mcp-server-iaptic/dist/server.js","--tenant-key", "719", "--address", "http://192.168.0.62:8017", "--user-key", "1866744621058617345"] }
配置3
"onchain-mcp-server": { "url": "http://192.168.0.169:3000/sse", }
{ "mcpServers": { "onchain-mcp-server": { "command": "node", "args": ["/Users/heningyuan/Public/mcp/mcp-server-iaptic/dist/server.js","--tenant-key", "719", "--address", "http://124.71.151.153:8047", "--user-key", "1866744621058617345"] } } }
打包后bundle.cjs要增加 #!/usr/bin/env node
