Blackhole MCP Server
OfficialClick on "Deploy 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., "@Blackhole MCP Serverquote swap 1 AVAX to USDC"
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.
Blackhole MCP Server
Model Context Protocol server for the Blackhole DEX on Avalanche. Provides 48 tools for swaps, liquidity, CL positions, zaps, voting, locks, gauges, bribes, portfolio queries, pool analytics, gas estimation, and transaction execution.
Tools
Category | Tools |
Swap |
|
Liquidity (V2) |
|
Liquidity (CL) |
|
Deposit math |
|
Zap |
|
Staking |
|
Fees & Emissions |
|
Locks (veNFT) |
|
Voting |
|
Epoch |
|
Gauges & Bribes |
|
Portfolio & discovery |
|
Pools, yield & ALM |
|
CL math & simulation |
|
Operational / Safety |
|
Execution |
|
Related MCP server: MCP-BAMM
Installation
1. Stdio -- for MCP clients (Claude Desktop, Cursor, Codex)
Cursor (.cursor/mcp.json)
{
"mcpServers": {
"blackhole-mcp": {
"command": "npx",
"args": ["@blackhole-dex/blackhole-mcp-server"],
"env": {
"PRIVATE_KEY": "0x..."
}
}
}
}Or from source:
{
"mcpServers": {
"blackhole-mcp": {
"command": "bash",
"args": ["-lc", "cd /path/to/mcp-server && NODE_ENV=prod npx tsx src/index.ts"],
"env": {
"PRIVATE_KEY": "0x..."
}
}
}
}Claude Desktop
Option A — one command (recommended):
From npm:
claude mcp add --scope user blackhole-mcp -- npx @blackhole-dex/blackhole-mcp-serverFrom source:
claude mcp add --scope user blackhole-mcp -- bash -lc "cd /path/to/mcp-server && NODE_ENV=prod npx tsx src/index.ts"--scope user writes to your global Claude config (~/.claude.json) so the server is available in every project. Restart Claude Desktop after running.
Option B — manual JSON (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
From npm:
{
"mcpServers": {
"blackhole-mcp": {
"command": "npx",
"args": ["@blackhole-dex/blackhole-mcp-server"]
}
}
}From source:
{
"mcpServers": {
"blackhole-mcp": {
"command": "bash",
"args": ["-lc", "cd /path/to/mcp-server && NODE_ENV=prod npx tsx src/index.ts"]
}
}
}Restart Claude Desktop after editing the file.
Codex
Codex reads MCP server config from ~/.codex/config.toml (global) or .codex/config.toml (project-scoped, trusted projects only). The CLI and IDE extension share this file. See the Codex MCP docs for details.
Option A — Codex app / IDE (UI)
Open Settings (gear icon) in the Codex app or IDE extension.
Go to MCP settings and add a server (or choose Open config.toml and paste the TOML from Option C below).
Set the command to
npxwith args@blackhole-dex/blackhole-mcp-server, and addPRIVATE_KEYunder environment variables if you plan to execute transactions.

Option B — CLI:
From npm:
codex mcp add blackhole-mcp --env PRIVATE_KEY=0x... -- npx @blackhole-dex/blackhole-mcp-serverFrom source:
codex mcp add blackhole-mcp --env PRIVATE_KEY=0x... -- bash -lc "cd /path/to/mcp-server && NODE_ENV=prod npx tsx src/index.ts"In the Codex TUI, use /mcp to verify the server is active.
Option C — manual config.toml (~/.codex/config.toml or .codex/config.toml in the project):
From npm:
[mcp_servers.blackhole-mcp]
command = "npx"
args = ["@blackhole-dex/blackhole-mcp-server"]
[mcp_servers.blackhole-mcp.env]
PRIVATE_KEY = "0x..."From source:
[mcp_servers.blackhole-mcp]
command = "bash"
args = ["-lc", "cd /path/to/mcp-server && NODE_ENV=prod npx tsx src/index.ts"]
[mcp_servers.blackhole-mcp.env]
PRIVATE_KEY = "0x..."2. Library -- import into your own Node.js app
npm install @blackhole-dex/blackhole-mcp-serverimport { createMcpServer } from "@blackhole-dex/blackhole-mcp-server";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
const server = createMcpServer();
const transport = new StdioServerTransport();
await server.connect(transport);Options:
Exported API:
createMcpServer()Also exported:
toolDefinitions,toolHandlers
Environment
The server uses production Avalanche mainnet configuration.
Env | Network | RPC |
| Avalanche Mainnet |
|
Optional runtime variables:
Variable | Purpose |
| Override the Avalanche C-Chain RPC endpoint used for reads and execution. |
| Override the basic pools subgraph URL. |
| Override the concentrated-liquidity subgraph URL. |
| Comma-separated Gamma vault allowlist override. |
| Private key used by |
| Read-only fallback address when no private key is configured. |
When PRIVATE_KEY is configured, tools with userAddress can omit it; the server fills in the private key-derived address. execute_transactions requires the private key and will only broadcast when called with confirm: true.
This server cannot be deployed
Maintenance
Related MCP Connectors
Official Aave MCP for V3 and V4 markets, positions, governance, and transaction preparation.
Aarna - 34 tools for swap quotes, liquidity pools, and trading data
Pay-per-call MCP tools over x402 (USDC/Solana): LLM, utilities, x402 market and model prices.
Pay-per-call x402 gateway: agent tools, OpenAI-compatible LLM, market data, RPC, security audits.
Related MCP Servers
- AlicenseBqualityDmaintenanceA server that provides tools for interacting with MantraChain blockchain through the Model Context Protocol, allowing users to manage tokens, stake assets, query balances, and execute various blockchain operations.184 npm2MIT
- AlicenseAqualityCmaintenanceA Model Context Protocol server that enables interaction with Borrow Automated Market Maker (BAMM) contracts on the Fraxtal blockchain, allowing users to manage positions, borrow against LP tokens, and perform other BAMM-related operations.713 npm1MIT

Blockscout MCP Serverofficial
FlicenseAqualityBmaintenanceA server that exposes blockchain data (balances, tokens, NFTs, contract metadata) via the Model Context Protocol, enabling AI agents and tools to access and analyze blockchain information contextually.1846-- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server providing comprehensive tools to access real-time market data, trading information, user positions, and analytics for the Hyperliquid perpetual futures exchange.5MIT