MCP·3EC80D official server
U

context7

By upstash·Visit Source
用于将最新文档获取到LLM提示中的MCP协议
2025年4月25日
Today
5 Clicks
About context7

用于将最新文档获取到LLM提示中的MCP协议. context7 is a Model Context Protocol (MCP) server maintained by upstash. It connects to MCP-compatible clients such as Claude Desktop, Cursor, Cline, and other agents that speak the protocol. It exposes 2 tools, including resolve-library-id and get-library-docs, that an agent can call directly. It is categorized under AI/Assistant, Tool/Documentation and Development/IDE. context7 is an official MCP server.

什么是MCP

Context7 MCP(模型上下文协议)能够直接获取最新版本特定文档和代码示例,并将其注入到LLM的上下文窗口中,从而避免信息过时或产生幻觉。

如何使用MCP

在Cursor、VS Code或Claude Desktop等支持的客户端中,只需在提示中添加use context7。该MCP会自动检索相关文档并注入到LLM的上下文中。

MCP的用途

Context7非常适合使用AI助手生成代码的开发者,它能确保LLM获取到库、框架和API的最新文档,减少因训练数据过时导致的错误。

Repository Info
Stars:
59201
Forks:
2801
Watchers:
59201
Last Updated: Today

AIMCP authority

DR and traffic signal for the AIMCP public domain.

FAQ

Frequently asked questions

What is the context7 MCP server?

context7 is a Model Context Protocol server from upstash. It lets MCP-compatible AI clients call its tools over a standard interface, so agents like Claude, Cursor, and Cline can use it without custom integration.

How do I connect context7 to my AI client?

Add context7 to your client's MCP configuration using the stdio or SSE connection shown in the usage examples on this page, then restart the client to load the server.

What tools does context7 provide?

context7 provides 2 tools: resolve-library-id and get-library-docs.

Is context7 free to use?

context7 is listed on AIMCP for free. Any API keys or accounts required by the underlying service are set by its provider.

Sponsored

Vernclaw Plugins for OpenClaw

Ready-to-use connectors for SEO data, social reading & content generation. Pay-as-you-go credits with audit logs.