Raindex MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Raindex MCP Serverlist my open orders on Ethereum"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Raindex MCP Server
A Model Context Protocol (MCP) server that wraps the Raindex SDK (@rainlanguage/orderbook), enabling AI agents to query, manage, and interact with Raindex onchain orderbook positions.
Features
17 MCP tools covering orders, vaults, strategies, deployment, transactions, and token info
Calldata-only writes — never holds keys or signs transactions
Multi-chain — queries all configured chains from a single settings file
Registry integration — browse and deploy strategies from a dotrain registry
Related MCP server: Haiku DeFi MCP
Prerequisites
Setup
# Enter dev shell (provides Node.js 22)
nix develop
# Install dependencies
npm ci
# Build
npm run build
# Run tests
npm testConfiguration
Set environment variables before starting the server:
Variable | Required | Description |
| Yes* | Path to a YAML settings file |
| Yes* | Inline YAML settings string |
| No | URL to a dotrain registry manifest |
*One of RAINDEX_SETTINGS_PATH or RAINDEX_SETTINGS_YAML is required.
Usage
As an MCP server (stdio transport)
RAINDEX_SETTINGS_PATH=./settings.yaml node dist/index.jsMCP client configuration (e.g. Claude Desktop)
{
"mcpServers": {
"raindex": {
"command": "node",
"args": ["/path/to/raindex-mcp/dist/index.js"],
"env": {
"RAINDEX_SETTINGS_PATH": "/path/to/settings.yaml",
"RAINDEX_REGISTRY_URL": "https://example.com/registry.txt"
}
}
}
}Tools
Orders
Tool | Description |
| List orders with optional chain/owner/token filters |
| Fetch a single order by hash |
| Trade history for an order |
| Live quotes for an order's pairs |
| Generate calldata to remove an order |
Vaults
Tool | Description |
| List vaults with optional filters |
| Fetch a single vault by ID |
| Balance change history for a vault |
| Generate deposit calldata |
| Generate withdraw calldata |
| Multicall to withdraw all balances |
Strategies & Deployment
Tool | Description |
| List strategies from registry |
| Deployment details for a strategy |
| Compose Rainlang from dotrain source |
| Generate deployment calldata |
Info
Tool | Description |
| Inspect an orderbook transaction |
| List all configured tokens |
| List known accounts from subgraph |
Architecture
Transport: stdio (standard MCP pattern)
Client: Single
RaindexClientinstance from settings YAMLWrite ops: Return
{ calldata, to, chainId }— agent signs externallySDK:
@rainlanguage/orderbook(Rust/WASM bindings)
Development
nix develop -c npm test # Run tests
nix develop -c npm run lint # Lint
nix develop -c npm run fmt # Format
nix develop -c npm run fmt:check # Check formatting
nix develop -c npm run build # Compile TypeScriptLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hardyjosh/raindex-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server