mayan-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MAYAN_API_KEY | No | Lifts Mayan's per-IP rate limit. Request one from support@mayan.finance. | |
| SOLANA_RPC_URL | No | Solana RPC endpoint for building Solana-source swaps. Without it the server falls back to the public mainnet endpoint, which throttles hard. | |
| MAYAN_MCP_DEBUG | No | Set to '1' for verbose logging on stderr. | |
| MAYAN_MAX_RETRIES | No | Maximum number of retries. Retries are full-jitter backoff, reads only. | 3 |
| MAYAN_REFERRER_EVM | No | Attaches a fee-split referrer to quotes for EVM chains. | |
| MAYAN_RPC_URL_BASE | No | Per-chain EVM endpoint, e.g., MAYAN_RPC_URL_BASE. The variable name is MAYAN_RPC_URL_<CHAIN> where <CHAIN> is a supported chain name (ethereum, base, arbitrum, optimism, polygon, bsc, avalanche). | |
| MAYAN_HTTP_TIMEOUT_MS | No | HTTP timeout in milliseconds. | 30000 |
| MAYAN_REFERRER_SOLANA | No | Attaches a fee-split referrer to quotes for Solana. | |
| MAYAN_TOKEN_CACHE_TTL_MS | No | Token cache TTL in milliseconds. | 600000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_quoteA | Quote a cross-chain swap through Mayan Finance. Returns every available route with the expected output, the guaranteed minimum after slippage, fees and ETA. Read-only: this builds nothing and moves nothing. |
| build_swapA | Build the transaction for a Mayan cross-chain swap and return it UNSIGNED. This server holds no private keys and cannot sign or broadcast — the caller signs with their own wallet. Quote terms (minimum received, slippage, route, ETA) are returned alongside the payload so the signer can see what they are approving. EVM sources also return the ERC20 approval that must be sent first. |
| list_tokensA | List the tokens Mayan can route on a given chain, with their addresses and decimals. Use this to find an exact token address when a symbol is ambiguous. Read-only. |
| track_orderA | Look up the status of a Mayan swap by its source-chain transaction hash. Read-only. |
| list_chainsA | List the chains this server can quote and build for, with their EVM chain ids and native token sentinels. Local — makes no network call. |
| estimate_gasA | Estimate the gas cost of an unsigned EVM transaction produced by build_swap. Read-only: nothing is signed or sent. |
| check_allowanceA | Read how much of an ERC20 token the Mayan forwarder is currently allowed to spend on someone's behalf, and whether that covers a swap. Read-only: performs an eth_call and nothing else. Requires MAYAN_RPC_URL_ to be configured for the chain. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool targets a distinct operation: quoting, building, listing tokens/chains, tracking, gas estimation, and allowance checking. No overlap in functionality.
All tools follow a consistent verb_noun pattern with underscores (e.g., get_quote, build_swap, list_tokens), making them predictable.
7 tools is well within the ideal range for a focused cross-chain swap server, each tool serving a necessary role without bloat.
Covers all essential operations for cross-chain swaps: chain/token discovery, quoting, transaction building, order tracking, gas estimation, and allowance checks. No obvious gaps.