Skip to content
Back to search

zed-mcp-server-context7

Context7 MCP Server for Zed

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/akbxr--zed-mcp-server-context7/badge.svg)](/listings/akbxr--zed-mcp-server-context7)

HTML

<a href="/listings/akbxr--zed-mcp-server-context7"><img src="/api/listings/akbxr--zed-mcp-server-context7/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 96 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # Context7 MCP Server for Zed
  2. This extension integrates [Context7](https://context7.com/) as a Model Context Protocol (MCP) server for Zed's Assistant, providing up-to-date documentation for any prompt.
  3. ## What is Context7?
  4. Context7 pulls up-to-date, version-specific documentation and code examples straight from the source and places them directly into your prompt context.
  5. ### ❌ Without Context7
  6. LLMs rely on outdated or generic information about the libraries you use. You get:
  7. - ❌ Code examples are outdated and based on year-old training data
  8. - ❌ Hallucinated APIs that don't even exist
  9. - ❌ Generic answers for old package versions
  10. ### ✅ With Context7
  11. Context7 fetches up-to-date, version-specific documentation and code examples straight from the source — and places them directly into your prompt.
  12. Add `use context7` to your question in Zed Assistant:
  13. ```
  14. How do I use the new Next.js `after` function? use context7
  15. ```
  16. ```
  17. How do I invalidate a query in React Query? use context7
  18. ```
  19. ```
  20. How do I protect a route with NextAuth? use context7
  21. ```
  22. ## How It Works
  23. - 1️⃣ Ask your question naturally
  24. - 2️⃣ Tell the LLM to `use context7`
  25. - 3️⃣ Get working code answers
  26. No tab-switching, no hallucinated APIs that don't exist, no outdated code generations.
  27. ## Installation
  28. This extension can be installed from the Zed extension.
  29. ## Agent Mode Configuration
  30. If you're using Zed's agent mode, you need to enable this context server for your assistant:
  31. 1. Open Zed's assistant settings
  32. 2. Enable the Context7 MCP server. If you see that the status of the tool is a red dot, make sure you toggle it so that becomes green.
  33. 3. Enable the Context7 MCP Server in the active assistant profile. In the chat section, click on the `Write | Ask` button, then click on `tools`, then enable the Context7 MCP Server.
  34. ## Environment Variables (Optional)
  35. - `context7_api_key`: Set the Context7 API key.
  36. Examples:
  37. ```json
  38. {
  39. "context_server": {
  40. "mcp-server-context7": {
  41. "source": "extension",
  42. "enabled": true,
  43. "settings": {
  44. "context7_api_key": "YOUR_CONTEXT7_API_KEY",
  45. }
  46. }
  47. }
  48. }
  49. ```
  50. ## Available Tools
  51. The Context7 MCP Server provides these tools to the LLM:
  52. - `resolve-library-id`: Resolves a general library name into a Context7-compatible library ID.
  53. - `libraryName` (optional): Search and rerank results
  54. - `get-library-docs`: Fetches documentation for a library using a Context7-compatible library ID.
  55. - `context7CompatibleLibraryID` (required)
  56. - `topic` (optional): Focus the docs on a specific topic (e.g., "routing", "hooks")
  57. - `tokens` (optional, default 5000): Max number of tokens to return
  58. ## Development
  59. Clone the project and install dependencies:
  60. ```
  61. cargo build
  62. ```
  63. ## License
  64. MIT

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.