bsc-dex-spread
v0.1.0Cross-DEX price & spread for PancakeSwap v2+v3 on BSC via x402.
Values you need
| Variable | What it is | |
|---|---|---|
EVM_PRIVATE_KEY | required secret | Your Base-mainnet buyer wallet private key (0x-prefixed). Funded with a few dollars of USDC on Base; needs zero ETH. Pays $0.01 USDC per call. |
GATEWAY_URL | optional | Optional override of the gateway base URL. Defaults to https://x402.donnyautomation.com |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add bsc-dex-spread -e 'EVM_PRIVATE_KEY=<EVM_PRIVATE_KEY>' -- npx -y bsc-dex-spread-mcp@0.1.0Add to
claude_desktop_config.json{
"mcpServers": {
"bsc-dex-spread": {
"args": [
"-y",
"bsc-dex-spread-mcp@0.1.0"
],
"command": "npx",
"env": {
"EVM_PRIVATE_KEY": "<EVM_PRIVATE_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"bsc-dex-spread": {
"args": [
"-y",
"bsc-dex-spread-mcp@0.1.0"
],
"command": "npx",
"env": {
"EVM_PRIVATE_KEY": "<EVM_PRIVATE_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "EVM_PRIVATE_KEY",
"id": "evm-private-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"bsc-dex-spread": {
"args": [
"-y",
"bsc-dex-spread-mcp@0.1.0"
],
"command": "npx",
"env": {
"EVM_PRIVATE_KEY": "${input:evm-private-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.bsc-dex-spread]
command = "npx"
args = ["-y", "bsc-dex-spread-mcp@0.1.0"]
env = { "EVM_PRIVATE_KEY" = "<EVM_PRIVATE_KEY>" }For AI agents
- Ask the user for: EVM_PRIVATE_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: get_dex_spread.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json