Skip to main content
Glama
xiaou66

Apifox Filter MCP Server

by xiaou66

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CACHE_DIRNo缓存目录(覆盖默认位置)
OPENAPI_URLNoOpenAPI 文档 URL(URL 模式必填,也可通过 --openapi-url 命令行参数指定)
PROJECT_DIRNo用户项目目录(缓存将放在此目录下)
APIFOX_API_BASENoApifox API 基础地址(私有部署时使用)https://api.apifox.com
REFRESH_ON_MISSNo找不到时自动刷新true
APIFOX_BRANCH_IDNo分支 ID
REFRESH_INTERVALNo定时刷新间隔(分钟),0 禁用30
APIFOX_MODULE_IDSNo模块 ID 列表(逗号分隔)
APIFOX_PROJECT_IDNoApifox 项目 ID(Apifox 模式必填,也可通过 --project-id 命令行参数指定)
APIFOX_ACCESS_TOKENNoApifox 访问令牌(Apifox 模式必填)
MISS_REFRESH_COOLDOWNNo自动刷新冷却(秒)60

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
smart_search_apiA

根据自然语言描述智能搜索接口,AI 的首选搜索工具。

核心能力:

  • 自动提取关键词并映射到接口路径

  • 支持中英文混合查询

  • 按相关度排序返回结果

使用场景:

  • 用户描述功能需求:"查找用户登录接口" → 搜索 login/auth

  • 用户询问模块接口:"达人管理有哪些接口" → 搜索 influencer/daren

  • 用户描述业务场景:"获取订单列表" → 搜索 order/list

优先使用此工具进行语义搜索,再用 get_api_detail 获取详情

search_apiA

根据 URL 模式搜索接口,这是查找接口的首选工具。

使用场景:

  • 当用户提到任何 API 路径或 URL 时,自动调用此工具查询

  • 当用户询问某个功能的接口时,根据关键词搜索

  • 当需要了解某个模块有哪些接口时

支持的匹配模式:

  • 精确匹配:/api/users

  • 通配符:/api/users/* 匹配所有子路径

  • 模糊搜索:users、influencer 等关键词

  • 路径片段:daren/influencer 匹配包含该片段的所有接口

get_api_detailA

获取单个接口的完整文档。

使用指引:

  • 已经知道接口路径时,直接传 path 获取详情

  • 先用 search_api 查到候选,再用本工具精确查看参数/请求体/响应/示例

  • method 可选,未提供时返回该 path 下所有方法(如同时存在 GET/POST)

list_api_by_tagB

按标签筛选接口列表

list_api_by_folderA

按 Apifox 文件夹路径筛选接口列表,支持精确和模糊匹配

list_api_foldersA

列出所有 Apifox 接口文件夹目录结构

batch_get_apisC

批量获取多个接口的详细信息

list_all_endpointsA

列出所有接口的路径和方法(仅返回摘要信息)

refresh_cacheA

刷新接口缓存,从 Apifox 重新获取最新数据

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/xiaou66/apifox-filter-mcp-server'

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