A Model Context Protocol (MCP) server that allows you to get quotes, trade transactions and token information from Monorail's APIs allowing your AI to take advantage our aggregation of 11 exchanges and 7000+ tokens.
We originally shared the API information in this gist for anyone to use, but thought providing a full MCP server would speed things up for anyone that wants to use our APIs via AI.
We've opened up a channel in our Discord specifically for this challenge and for anyone that wants to use (or experiment) with our APIs and this MCP server. You can join our Discord at https://discord.monorail.xyz. We're always open for feedback if you run into anything that you'd like to see added or improved.
Alternatively, feel free to open an issue here on GitHub.
To add this MCP server to your MCP client, you'll need to:
1. Clone this repo
git clone https://github.com/monorail-xyz/mcp-server.git monorail-mcp-serveror
2. Install the dependencies
cd monorail-mcp-server
npm install3. Build the project
npm run build4. Add the resulting build to your MCP client
{
"mcpServers": {
"monorail": {
"command": "node",
"args": ["C:\\path\\to\\build\\index.js"]
}
}
}Once the server is available within your MCP client, you can simply ask it for token information, balances and get quotes for trades. The quotes will include the transaction data that you can use to execute the trade. This server also includes swap execution functionality for complete trading workflows.