本项目的服务器允许AI模型从Plausible Analytics API查询分析数据,为获取相关分析数据提供了便捷的途径。
要在本地运行此客户端,请在Claude Desktop MCP Server配置文件中添加以下内容:
{
"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联系我们。