mcpField
B

bsc-dex-spread

Local
github.com/donnywin85Finance0Updated 10w ago

About bsc-dex-spread

Cross-DEX price & spread for PancakeSwap v2+v3 on BSC via x402. Tool get_dex_spread(pair, fee?)

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"donnywin85-bsc-dex-spread": {
"command": "npx",
"args": [
"-y",
"bsc-dex-spread-mcp"
],
"env": {
"EVM_PRIVATE_KEY": "<EVM_PRIVATE_KEY>",
"GATEWAY_URL": "<GATEWAY_URL>"
}
}
}
}
Run commandnpx -y bsc-dex-spread-mcp
Environment variables to set
EVM_PRIVATE_KEYSecretYour 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_URLOptional override of the gateway base URL. Defaults to https://x402.donnyautomation.com

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmbsc-dex-spread-mcp0.1.0

Tools

1

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
feestringNoOptional PancakeSwap v3 fee tier to restrict the v3 probe (e.g. 100, 500, 2500, 10000). Omit to probe all v3 tiers + v2.
pairstringYesToken pair as SYM/SYM; first symbol is the USD-priceable side (e.g. WBNB/USDC, WBNB/USDT, CAKE/WBNB).

Details

The maintainer has not added details yet. Check the README in the repository.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.