Context7 MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Context7 MCP Serverget documentation for the React library"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Context7 MCP Server (Python)
A Python MCP server for the Context7 API, providing up-to-date library documentation. Built with the Dedalus MCP framework.
Features
resolve_library_id - Resolve a library name to its Context7 ID
get_library_docs - Fetch documentation for a specific library
Related MCP server: Context7 MCP Server
Installation
# Clone the repository
git clone https://github.com/dedalus-labs/context7-mcp-python.git
cd context7-mcp-python
# Install dependencies with uv
uv syncConfiguration
Create a .env file with your Context7 API key:
CONTEXT7_API_KEY=your_api_key_hereGet your API key from Context7.
Usage
Running the Server
uv run python src/main.pyThe server will start on http://localhost:3012/mcp.
Testing with the Client
uv run python src/client.pyTools
resolve_library_id
Resolve a general library name to a Context7-compatible library ID.
Parameters:
library_name(required): Library name to search for (e.g., "react", "nextjs", "postgres")
Returns: Matching libraries with their Context7 IDs
get_library_docs
Fetch up-to-date documentation for a library from Context7.
Parameters:
library_id(required): Exact Context7 library ID (e.g., "/mongodb/docs", "/vercel/next.js")topic(optional): Focus on a specific topic within the librarytokens(optional): Max tokens of documentation (default: 10000)
Returns: Library documentation content
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceProvides access to the Context7 API for searching up-to-date documentation, code examples, API references, and troubleshooting help across thousands of programming libraries and frameworks. Enables developers and AI agents to quickly find accurate documentation, compare libraries, get migration guides, and resolve coding issues.
- AlicenseAqualityDmaintenanceProvides LLMs with up-to-date, version-specific documentation and code examples directly from library sources, eliminating outdated training data and hallucinated APIs by fetching current documentation at prompt time.421,169,818MIT
- FlicenseNot gradedqualityDmaintenanceProvides up-to-date, version-specific documentation and code examples for software libraries directly to LLMs, enabling resolution of library identifiers and retrieval of relevant documentation with code snippets.
Related MCP Connectors
Get up-to-date, version-specific documentation and code examples from official sources directly in…
@latest documentation and code examples to 9000+ libraries for LLMs and AI code editors in a singl…
Search and read the StitchAPI docs: search_docs finds relevant sections, get_doc reads a page.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tsiongk/context7'
If you have feedback or need assistance with the MCP directory API, please join our Discord server