MCP.so
Sign In

Context7 MCP Server for Zed

@akbxr

About Context7 MCP Server for Zed

Context7 MCP Server for Zed

Basic information

Category

Other

License

MIT

Runtime

rust

Transports

stdio

Publisher

akbxr

Config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

Tools

2

Resolves a general library name into a Context7-compatible library ID.

Fetches documentation for a library using a Context7-compatible library ID.

Overview

What is Context7 MCP Server for Zed?

This extension integrates Context7 as a Model Context Protocol (MCP) server for Zed's Assistant. It provides up-to-date, version-specific documentation and code examples straight from the source, placing them directly into your prompt context to replace outdated or hallucinated LLM responses.

How to use Context7 MCP Server for Zed?

Install the extension from the Zed extension marketplace. Add use context7 to your question in Zed Assistant (e.g., "How do I use the new Next.js after function? use context7"). For agent mode, enable the Context7 MCP server in assistant settings (toggle the red dot to green) and enable it in the active assistant profile. Optionally set a context7_api_key environment variable in your Zed settings.

Key features of Context7 MCP Server for Zed

  • Integrates Context7 as an MCP server for Zed Assistant
  • Fetches up-to-date, version-specific documentation
  • Replaces outdated code examples and hallucinated APIs
  • Triggered by adding use context7 to any prompt
  • Provides two tools: resolve-library-id and get-library-docs
  • Supports optional API key configuration

Use cases of Context7 MCP Server for Zed

  • Getting current Next.js after function documentation
  • Invalidating queries in React Query with correct syntax
  • Retrieving route protection code for NextAuth
  • Fetching docs for any library with optional topic focus

FAQ from Context7 MCP Server for Zed

What problem does Context7 solve?

LLMs like those in Zed Assistant rely on outdated training data. Context7 supplies live, version-specific docs and code examples, eliminating hallucinated APIs and obsolete answers.

How do I trigger Context7 in a prompt?

Simply add the phrase use context7 to the end of your question in Zed Assistant. For example: "How do I protect a route with NextAuth? use context7".

What tools does Context7 MCP Server provide?

It offers resolve-library-id (converts a library name into a Context7-compatible ID) and get-library-docs (fetches documentation for that library, with optional topic and tokens parameters).

Is configuration required to use the server?

For basic use, no. For agent mode, you must manually enable the server in assistant settings and then enable it in the active assistant profile. An optional context7_api_key can be set for API access.

How do I install Context7 MCP Server for Zed?

Install it directly from the Zed extension marketplace. For development, clone the repository and run cargo build.

Comments

More Other MCP servers