Back to MCP directory
publicPublicdnsLocal runtime

Plausible Analytics

一个用于与Plausible Analytics API交互的MCP服务器实现,允许AI模型查询分析数据。

article

README

🚀 可信模型上下文协议服务器:与Plausible Analytics交互的MCP服务实现

本项目的服务器允许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应用程序中使用以下示例提示词进行测试:

  • “能否为我提供avimbu.com网站的每日分析概览?”
  • “能否生成与我的Plausible账户相关的分析报告(针对avimbu.com域名)?”

💻 使用示例

本地运行服务器

node dist/index.js

构建项目

构建项目时请在另一个终端中使用命令:

npm run watch

📞 联系方式

如需咨询,请通过AVIMBU联系我们。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client