返回市场
esa-mcp服务器

esa-mcp服务器

作者:d-kimuson35 星标更新:2025-07-15

项目介绍

esa-mcp-server

smithery 徽章

esa-mcp-server 是一个通过 Model Context Protocol (MCP) 提供 esa.io API 的服务器。

<a href="https://glama.ai/mcp/servers/undwqgwbtd"><img width="380" height="200" src="https://gips0.baidu.com/it/u=2723885766,2219523973&fm=3081&app=3081&f=PNG?w=760&h=400" alt="ESA Server MCP 服务器" /></a>

功能

  • get_search_query_document: 提供用于搜索 esa.io 文章的文档
  • search_esa_posts: 搜索 esa.io 文章
  • read_esa_post, read_esa_multiple_posts: 获取文章详情(单个或多个)
  • create_esa_post: 创建文章
  • update_esa_post: 更新文章
  • delete_esa_post: 删除文章

使用方法

根据使用的工具准备相应的设置文件如下:

{
  "mcpServers": {
    "esa-mcp-server": {
      "command": "npx",
      "args": ["-y", "esa-mcp-server@latest"],
      "env": {
        "ESA_API_KEY": "在这里填写你的 API 密钥",
        "DEFAULT_ESA_TEAM": "在这里填写你的默认 esa 团队"
      }
    }
  }
}

示例提示

## 使用 esa 工具

为了检索 esa 的信息,可以使用以下工具。

- 对于文章搜索,使用 search_esa_posts 工具。如果需要使用复杂的查询,请先使用 get_search_query_document 工具来了解如何准确地编写查询。
- 要获取文章内容,使用 read_esa_post 或 read_esa_multiple_posts 工具。如果有需要获取多篇文章的情况,建议使用 read_esa_multiple_posts 工具一次性获取。
- 要创建、更新或删除文章,分别使用 create_esa_post、update_esa_post 和 delete_esa_post 工具。

可用工具

请参阅 src/server.ts

贡献

欢迎贡献。