MCP server for real-time token prices on Base from on-chain DEX pools.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add base-price-oracle --env RPC_URL='<RPC_URL>' -- npx -y base-price-oracle-mcp~/.codex/config.toml
[mcp_servers.base-price-oracle]
command = "npx"
args = ["-y", "base-price-oracle-mcp"]
env = { RPC_URL = "<RPC_URL>" }
# codex mcp add base-price-oracle --env RPC_URL='<RPC_URL>' -- npx -y base-price-oracle-mcp~/.cursor/mcp.json
{
"mcpServers": {
"base-price-oracle": {
"command": "npx",
"args": [
"-y",
"base-price-oracle-mcp"
],
"env": {
"RPC_URL": "<RPC_URL>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"base-price-oracle": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"base-price-oracle-mcp"
],
"env": {
"RPC_URL": "<RPC_URL>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"base-price-oracle": {
"command": "npx",
"args": [
"-y",
"base-price-oracle-mcp"
],
"env": {
"RPC_URL": "<RPC_URL>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"base-price-oracle": {
"command": "npx",
"args": [
"-y",
"base-price-oracle-mcp"
],
"env": {
"RPC_URL": "<RPC_URL>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"base-price-oracle": {
"command": "npx",
"args": [
"-y",
"base-price-oracle-mcp"
],
"env": {
"RPC_URL": "<RPC_URL>"
}
}
}
}需要的环境变量
RPC_URL
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。