How does WebAPI MCP 服务器 differ from RAG-based approaches?
It replaces vector database retrieval with direct API calls, providing more precise and reliable data without data chunking or embedding, and is simpler to deploy.
@yinzhouzhi
基本信息
(一键将传统业务系统转换成智能体)支持将传统的WebAPI,转换成MCP工具的mcp服务器
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"webapi-mcp-server": {
"command": "npx",
"args": [
"-y",
"@yinzhouzhi/webapi-mcp-server",
"start"
]
}
}
}将Web API注册为MCP工具,使其可以通过MCP协议直接调用。您可以指定API名称、URL、HTTP方法、参数定义、请求头和结果处理路径。注册后将创建与API名称相同的新工具。
设置适用于所有API请求的全局默认请求头。这些请求头将自动应用于通过register_web_api注册的所有API调用,但可以被单个API的特定请求头覆盖。
列出当前已注册的所有Web API,包括它们的名称、URL、方法、参数定义和请求头配置等详细信息。
移除已注册的Web API工具。成功移除后,相应的MCP工具将不再可用。
从JSON或Markdown文件加载API定义并注册为MCP工具
从目录加载所有API定义文件并注册为MCP工具
从配置文件加载API定义
WebAPI MCP 服务器 converts traditional Web APIs into MCP (Model Context Protocol) tools, enabling direct integration between legacy business systems and large language models without requiring custom interface development. It supports batch registration of API definitions from JSON or Markdown files or directories, and allows setting default request headers globally for all registered APIs.
Install via npx or clone the repository and run npm install and npm start. Configure using a JSON/YAML/YML configuration file specifying API directories, individual API files, and global headers, or via environment variables (WEBAPI_CONFIG_FILE, WEBAPI_APIS_DIR, WEBAPI_DEBUG). Define APIs in JSON or Markdown format and use built-in MCP tools to register, unregister, list, and manage them.
It replaces vector database retrieval with direct API calls, providing more precise and reliable data without data chunking or embedding, and is simpler to deploy.
Both JSON and Markdown formats are supported. JSON requires name, description, url, method; Markdown uses headings (name, URL, method, parameters, headers, result path, etc.).
Yes. Global headers can be defined in the configuration file via the `globalHeaders` object or set dynamically using the `set_default_headers` MCP tool.
The server provides `register_web_api`, `set_default_headers`, `list_registered_apis`, `unregister_api`, `load_api_from_file`, `load_apis_from_directory`, and `load_from_config`.
Yes. It can be added as an MCP server in Cursor by using the npx command with the package `@yinzhouzhi/webapi-mcp-server start` in the MCP client configuration.

Health by Dr Brad works out a health plan from your own results: which screening is due at your age, and evidence-based suggestions, each with the reason and the published guideline or study behind it. Your record is one

Model Context Protocol Servers
Hindsight: Agent Memory That Learns

DeepMark helps teachers deliver rapid, consistent marking with meaningful feedback for every student — in a fraction of the time. What once took a week, now takes one free period.
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
评论