用于与Plausible Analytics API交互的Model Context Protocol (MCP)服务器实现。此服务器允许AI模型从Plausible查询分析数据。
为了在本地运行此客户端,请在您的Claude Desktop MCP服务器配置文件中添加以下配置:
{
"mcpServers": {
"mcp-plausible-local": {
"command": "node",
"args": ["/path/to/project/dist/index.js"], <---- 替换为您项目的路径
"env": {
"PLAUSIBLE_API_URL": "https://plausible.io/api/v2",
"PLAUSIBLE_API_KEY": "test_api_key"
}
},
}
}
完成上述步骤后,您应该能够在您的Claude Desktop应用程序中使用示例提示测试此实现:
在本地运行服务器:
node dist/index.js
在另一个终端中构建:
npm run watch
如果您有任何问题,欢迎通过AVIMBU联系我们。