Dexscreener MCP 服务器是基于 Dexscreener API 文档(截至 2025 年 4 月 4 日)构建的基本 MCP 服务器,为相关应用提供支持。其 API 文档可参考:https://docs.dexscreener.com/api/reference
安装所有依赖项,执行以下命令:
npm run install
如果你使用 Claude Desktop,拉取代码后在 VSCode 中打开配置文件 claude_desktop_config.json:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
code $env:AppData\Claude\claude_desktop_config.json
更多信息可查看:https://modelcontextprotocol.io/quickstart/server
在 claude_desktop_config.json 中添加 dexscreener 对象:
{
"mcpServers": {
"dexscreener": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/index.js"
]
}
}
}
你可以使用 Inspector 在不使用 Claude Desktop 的情况下测试 MCP 服务器,支持 SDTIO 版本(默认)以及 SSE 版本 index-sse.js(服务器端事件——可以托管在远程服务器上)。