> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/help-center/cn/mian-xiang-llm-de-shu-ju/what-is-model-context-protocol-mcp-and-how-does-it-benefit-web-api-usage.md).

# 什么是模型上下文协议（MCP），它如何有利于使用 Web API？

了解什么是模型上下文协议，以及它如何将 AI 代理连接到 Web API。

模型上下文协议（MCP）是让 AI 模型和代理连接外部工具和数据源的一种标准方式。

在 MCP 出现之前，将 LLM 连接到 Web 数据源需要为每个数据源单独进行定制集成。这导致了解决方案复杂且难以扩展。

使用 Oxylabs 的 MCP 服务器用于 [Web API](https://developers.oxylabs.io/products/web-api)，任何 MCP 客户端，例如 Claude Code 或 Cursor，都可以搜索网页、将页面读取为 Markdown、将字段提取为 JSON，并直接调用专用抓取器。你无需编写或维护集成代码。

🧠 要进行设置，请查看 [MCP 服务器文档](https://developers.oxylabs.io/ai-workflows/mcp) 和 [GitHub](https://github.com/oxylabs/web-api-mcp).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.oxylabs.io/help-center/cn/mian-xiang-llm-de-shu-ju/what-is-model-context-protocol-mcp-and-how-does-it-benefit-web-api-usage.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
