基于Dexscreener API 文档(截至2025年4月4日)的基本MCP服务器:https://docs.dexscreener.com/api/reference
安装所有依赖项
npm run install
如果你正在使用Claude Desktop,在拉取代码后,用VSCode打开配置文件claude_desktop_config.json:
在MacOS上:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
在Windows上:
code $env:AppData\Claude\claude_desktop_config.json
在claude_desktop_config.json中添加dexscreener对象:
{
"mcpServers": {
"dexscreener": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/index.js"
]
}
}
}
你可以使用Inspector来测试MCP服务器,无需使用Claude Desktop——适用于SDTIO版本(默认)和SSE版本index-sse.js(服务器发送事件——可以托管在远程服务器上)。