PolarHub
  • Agents
  • MCP Servers
  • Skills
  • PolarBear
PolarHub © 2026
MCP Serversdocumentation-accesscontext7
返回「documentation-access」

context7

modelscope·@2511319/context7

documentation-access0下载LocalModelScope

简介

暂无描述。

MCP Server 详情

来自 ModelScope 索引

Context7 MCP - Up-to-date Code Docs For Any Prompt

Website smithery badge <img alt="Install in VS Code (npx)" src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Context7%20MCP&color=0098FF">

繁體中文 简体中文 日本語  Documentacin en Espaol Documentation en Franais Documentao em Portugus (Brasil) Documentazione in italiano Dokumentasi Bahasa Indonesia Dokumentation auf Deutsch    Trke Dokman Arabic Documentation

Without Context7

LLMs rely on outdated or generic information about the libraries you use. You get:

  • Code examples are outdated and based on year-old training data
  • Hallucinated APIs don't even exist
  • Generic answers for old package versions

With Context7

Context7 MCP pulls up-to-date, version-specific documentation and code examples straight from the source and places them directly into your prompt.

Add use context7 to your prompt in Cursor:

Create a Next.js middleware that checks for a valid JWT in cookies and redirects unauthenticated users to `/login`. use context7
Configure a Cloudflare Worker script to cache JSON API responses for five minutes. use context7

Context7 fetches up-to-date code examples and documentation right into your LLM's context.

  • 1 Write your prompt naturally
  • 2 Tell the LLM to use context7
  • 3 Get working code answers

No tab-switching, no hallucinated APIs that don't exist, no outdated code generations.

Adding Projects

Check out our project addition guide to learn how to add (or update) your favorite libraries to Context7.

Installation

Requirements

  • Node.js >= v18.0.0
  • Cursor, Windsurf, Claude Desktop or another MCP Client
<details> <summary><b>Installing via Smithery</b></summary>

To install Context7 MCP Server for any client automatically via Smithery:

npx -y @smithery/cli@latest install @upstash/context7-mcp --client <CLIENT_NAME> --key <YOUR_SMITHERY_KEY>

You can find your Smithery key in the Smithery.ai webpage.

</details> <details> <summary><b>Install in Cursor</b></summary>

Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server

Pasting the following configuration into your Cursor ~/.cursor/mcp.json file is the recommended approach. You may also install in a specific project by creating .cursor/mcp.json in your project folder. See Cursor MCP docs for more info.

Since Cursor 1.0, you can click the install button below for instant one-click installation.

Cursor Remote Server Connection

Install MCP Server

{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp"
    }
  }
}

Cursor Local Server Connection

Install MCP Server

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    }
  }
}
<details> <summary>Alternative: Use Bun</summary>

Install MCP Server

{
  "mcpServers": {
    "context7": {
      "command": "bunx",
      "args": ["-y", "@upstash/context7-mcp"]
    }
  }
}
</details> <details> <summary>Alternative: Use Deno</summary>

Install MCP Server

{
  "mcpServers": {
    "context7": {
      "command": "deno",
      "args": ["run", "--allow-env=NO_DEPRECATION,TRACE_DEPRECATION", "--allow-net", "npm:@upstash/context7-mcp"]
    }
  }
}
</details> </details> <details> <summary><b>Install in Windsurf</b></summary>

Add this to your Windsurf MCP config file. See Windsurf MCP docs for more info.

Windsurf Remote Server Connection

{
  "mcpServers": {
    "context7": {
      "serverUrl": "https://mcp.context7.com/sse"
    }
  }
}

Windsurf Local Server Connect…

相关 MCP Servers(来自「documentation-access」)

MCP PDF阅读器

赋予AI代理在项目背景下使用灵活的MCP工具安全读取和提取PDF文件中的信息(文本、元数据、页数)的能力。

@sylphxltd/pdf-reader-mcp

teddylee777

暂无描述。

@teddylee777/mcpdoc

pubnub

暂无描述。

@pubnub/pubnub-mcp-server

dulbrich

暂无描述。

@dulbrich/familysearch-mcp

prashalruchiranga

暂无描述。

@prashalruchiranga/arxiv-mcp-server

canlgz

暂无描述。

@canlgz/markitdown_mcp_server

自动安装

点击按钮会唤起 PolarBear 客户端,并把当前 MCP Server 的 Markdown 详情文档地址传给客户端。

/api/mcps/2511319-context7/markdown
打开 PolarBear 安装查看 Markdown 文档

手动安装

在 PolarBear 或其他支持 MCP 的客户端中,新建 MCP Server,并参考下方来源或安装提示配置。

```txt Configure a Cloudflare Worker script to cache JSON API responses for five minutes. use context7 ``` Context7 fetches up-to-date code examples and documentation right into your LLM's context. - 1 Write your prompt naturally - 2 Tell the LLM to `use context7` - 3 Get working code answers No tab-switching, no hallucinated APIs that don't exist, no outdated code generations. ## Adding Projects Check out our [project addition guide](./docs/adding-projects.md) to learn how to add (or update) your favorite libraries to Context7. ## Installation ### Requirements - Node.js >= v18.0.0 - Cursor, Windsurf, Claude Desktop or another MCP Client <details> <summary><b>Installing via Smithery</b></summary> To install Context7 MCP Server for any client automatically via [Smithery](https://smithery.ai/server/@upstash/context7-mcp):

基本信息

分类
documentation-access / developer-tools / rag-systems
运行方式
No
许可证
MIT License
详情文件
2511319-context7.md