@anaxer/mcp
v0.2.2
Published
Official MCP server for Anaxer — query Solana DEX data from Claude Desktop, Claude Code, Cursor, and other MCP hosts.
Maintainers
Readme
@anaxer/mcp
Official MCP server for the Anaxer Solana real-time data API. Add a few lines to Claude Desktop, Claude Code, or Cursor and the assistant can call typed tools over your API key — prices, metadata, creations, graduations, and a bounded live stream tail.
Requires Node ≥ 20. This package wraps @anaxer/sdk;
it adds no gateway or wire behavior.
npx -y @anaxer/mcpSetup
Set ANAXER_API_KEY in the MCP host config (never pass the key as a tool argument).
Claude Desktop / Claude Code / Cursor
{
"mcpServers": {
"anaxer": {
"command": "npx",
"args": ["-y", "@anaxer/mcp"],
"env": {
"ANAXER_API_KEY": "sk_live_…"
}
}
}
}Optional:
| Env | Default | Purpose |
|---|---|---|
| ANAXER_BASE_URL | https://api.anaxer.com | REST base (local gateway: http://localhost:3010) |
| ANAXER_WS_URL | derived from base → …/v1/stream | Override WebSocket URL |
Tools
| Tool | What it answers |
|---|---|
| get_token_metadata | Name/symbol/supply/socials for one mint |
| get_tokens_metadata | Batch metadata (≤50 mints) |
| get_token_price | Latest USD + SOL price / market cap for one mint |
| get_token_prices | Batch prices (≤50 mints) |
| list_token_trades | One page of swaps for a mint (either leg; optional solOnly; quote :mint rejected) |
| list_creations | One page of recent launches |
| list_graduations | One page of recent graduations |
| get_launchpad_stats | Aggregate launchpad stats over a window |
| tail_stream | Bounded live WS batch (trades / creations / graduations / prices) |
List tools default to limit: 20 (max 200) to conserve model context. Paginate by calling
again with cursor set to the previous next; stop when next is null.
Spelling: REST list tools take a singular source string. tail_stream filters use a
sources array (WebSocket filter shape).
tail_stream caps
maxEvents— default20, cap100timeoutMs— default10_000, cap30_000- Ends when either cap hits first; always unsubscribes before returning
Per-channel filter keys:
trades:sources,mints,wallets,minVolumeUsd,maxVolumeUsd,solOnly(quote assets SOL/USDC/USDT rejected inmints— usesolOnly: truefor SOL pairs)creations:sources,enriched,excludeMayhemgraduations:sources,excludeMayhem,minLiquiditySolprices:sources,mints
v1 omissions
These are intentional, not bugs:
- No
tail_stream("transfers")and nolist_programs(same as@anaxer/sdkv1) - No remote / hosted MCP (Streamable HTTP) — local stdio only
- No gap recovery on reconnect (SDK has none)
- No MCP resources or prompts — tools only
Troubleshooting
- Wrong API key on
tail_stream. REST tools fail per call and recover as soon as you fixANAXER_API_KEY. WebSocketunauthorizedis terminal for the shared socket — restart the MCP server process (reload the host / re-runnpx @anaxer/mcp) after fixing the key. subscription_limit. Each opentail_streamholds one plan subscription until it returns. Overlapping tails (or a leaked subscription) on free/low plans can hit the cap. The server alwaysclose()s infinally; hosts normally serialize tool calls, so this is rare.
License
MIT
