Skip to main content
Glama

eolink-mcp

An MCP server that lets AI assistants (Claude Code, etc.) query API documentation from any Eolink Apikit instance — SaaS or private deployment — via the Eolink Open API.

安装

npm install -g @huberyhe/eolink-mcp     # 推荐:全局安装,多实例无竞态
# 或
npx @huberyhe/eolink-mcp                # 免安装直接运行(首次需下载)

多个 Claude Code 实例同时冷启动时,npx 共用缓存可能偶现竞态导致 not found。全局安装可完全避免。

Related MCP server: Apifox MCP Server

提供的工具

查询(只读)

工具

用途

project_id

eolink_list_projects

列出空间所有项目(第一步)

不需要

eolink_list_groups

列出指定项目的接口分组树

必填

eolink_search_apis

按关键字/分组/状态模糊搜索接口(匹配名称/URL/Tag)

必填

eolink_find_api_by_path

按 api_path 精确/前缀查找接口

必填

eolink_get_api_detail

按 api_id 获取单个接口的完整定义(请求/响应参数)

必填

eolink_export_openapi

导出整个项目为 OpenAPI JSON(兜底全量)

必填

写入(会改动 Eolink 文档)

工具

用途

project_id

eolink_create_api

新增 HTTP 接口(不传 api_id)

必填

eolink_update_api

修改已有接口(传 api_id)

必填

eolink_create_group

新增接口分组

必填

⚠️ 写工具默认启用,AI 可直接增改接口文档。修改建议先 get_api_detail 确认当前内容。Eolink Open API 不开放删除接口,删除请到 Eolink 后台手动操作。写操作经 /index.php/ 入口,add_group 使用 form-urlencoded 格式——这些差异已内置处理,使用者无需关心。参数类型 param_type 用数字(0=string 3=int 2=json 8=boolean 等)。

典型流程:list_projectssearch_apisfind_api_by_path(带 project_id)→ get_api_detail

按名称找用 search_apis;按 URL 找用 find_api_by_pathexact 等值 / prefix 前缀),比模糊搜索更精准。

配置

变量

必填

说明

EOLINK_BASE_URL

Eolink 实例 Open API 地址,如 https://your-eolink.example.com

EOLINK_TOKEN

Open API 令牌(对应请求头 Eo-Secret-Key

EOLINK_SPACE_ID

工作空间 ID

EOLINK_NO_PROXY

1 禁用代理解析(默认自动读 HTTP(S)_PROXY

Claude Code

方式一:全局 bin(推荐,多实例安全)

npm install -g @huberyhe/eolink-mcp@1.1.0

然后在 ~/.claude.jsonmcpServers 中添加:

{
  "mcpServers": {
    "eolink": {
      "command": "eolink-mcp",
      "args": [],
      "env": {
        "EOLINK_BASE_URL": "https://your-eolink.example.com",
        "EOLINK_TOKEN": "your-open-api-secret-key",
        "EOLINK_SPACE_ID": "your-space-id"
      }
    }
  }
}

方式二:npx(免安装)

{
  "mcpServers": {
    "eolink": {
      "command": "npx",
      "args": ["-y", "@huberyhe/eolink-mcp"],
      "env": { ... }
    }
  }
}

npx 首次需下载,多实例冷启动偶现缓存竞态。长期使用推荐全局安装。

本地调试:可在配置中保留两条入口,正式用全局 bin,改代码后用 dist 直连:

"eolink":      { "command": "eolink-mcp" },           // 日常
"eolink_test": { "command": "node", "args": ["dist/index.js"] }  // 调试

claude mcp list 查看连接状态。

其它 MCP 客户端

任何支持 stdio MCP server 的客户端都适用:command 为 eolink-mcp(全局安装)或 npx -y @huberyhe/eolink-mcp(免安装),env 同上。

获取凭证

在 Eolink 后台「空间设置 / 开放 API」处生成 Open API 令牌(即 Eo-Secret-Key);space_id 为工作空间标识;EOLINK_BASE_URL 为实例 Open API 根地址。

代理

访问 Eolink 实例(尤其私有化内网部署)常需经代理。本 server 自动读取 HTTP(S)_PROXY 环境变量;设 EOLINK_NO_PROXY=1 可禁用。

本地开发

git clone https://github.com/huberyhe/eolink-mcp.git && cd eolink-mcp
npm install && npm run build    # 产物在 dist/index.js

改代码后 npm run build,重启 MCP 即生效。可在 ~/.claude.json 中保留两条入口:

"eolink":      { "command": "eolink-mcp" },              // 正式,走 npm
"eolink_test": { "command": "node", "args": ["dist/index.js"] }  // 调试,改代码即生效

测试用 MCP Inspector:

npx @modelcontextprotocol/inspector --cli --transport stdio \
  -e EOLINK_BASE_URL=xxx -e EOLINK_TOKEN=xxx -e EOLINK_SPACE_ID=xxx \
  --method tools/list -- node dist/index.js

License

MIT

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    -
    maintenance
    Enables AI assistants to access and search RAP2 API documentation, allowing users to query interface details, search APIs by keywords, and retrieve repository interfaces through natural language.
    Last updated
    7
    7
  • A
    license
    A
    quality
    C
    maintenance
    Enables AI assistants to fetch and understand API endpoint definitions from Apifox projects in real-time. Supports retrieving complete API specifications including request methods, parameters, headers, and response schemas to improve development efficiency and code generation quality.
    Last updated
    1
    27
    3
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Enables AI tools to search and explore API documentation from Apidog projects or OpenAPI/Swagger specifications, providing endpoint details, schemas, and project statistics through natural language queries.
    Last updated
    902
    1
    ISC
  • A
    license
    A
    quality
    D
    maintenance
    Exposes Swagger/OpenAPI API documentation to AI models, enabling exploration, search, and interaction with endpoints, schemas, and execution of API calls.
    Last updated
    14
    5
    2
    MIT

View all related MCP servers

Related MCP Connectors

  • Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.

  • Curated knowledge API for AI agents - skill packs, semantic search, validated patterns.

  • Search @imqueue docs and scaffold typed services & clients from your AI coding agent.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/huberyhe/eolink-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server