Provides access to Angular documentation, code examples, API references, and best practices through Context7's comprehensive framework documentation database
Enables retrieval of Ansible documentation, configuration examples, playbook patterns, and DevOps best practices via Context7's API
Offers access to Django documentation, code examples, API references, migration guides, and web development best practices through Context7
Provides Docker documentation, containerization examples, configuration guides, and DevOps best practices via Context7's documentation API
Enables access to Express.js documentation, middleware examples, routing patterns, and Node.js backend development best practices through Context7
Provides FastAPI documentation, API development examples, async programming patterns, and Python web framework best practices via Context7
Offers access to Fastify documentation, performance optimization examples, plugin development guides, and Node.js framework best practices through Context7
Enables retrieval of Flutter documentation, mobile development examples, widget guides, and cross-platform app development best practices via Context7
Provides comprehensive JavaScript documentation, code examples, language features, and programming best practices through Context7's API
Offers access to Koa.js documentation, middleware examples, async/await patterns, and Node.js framework best practices via Context7
Enables access to Kotlin documentation, Android development examples, language features, and mobile programming best practices through Context7
Provides Kubernetes documentation, container orchestration examples, deployment configurations, and DevOps best practices via Context7's API
Offers Next.js documentation, React framework examples, SSR/SSG patterns, and full-stack development best practices through Context7
Enables access to NumPy documentation, array manipulation examples, mathematical operations, and scientific computing best practices via Context7
Provides Nuxt.js documentation, Vue framework examples, universal application patterns, and frontend development best practices through Context7
Offers pandas documentation, data manipulation examples, DataFrame operations, and data science best practices via Context7's API
Enables access to PHP documentation, web development examples, language features, and server-side programming best practices through Context7
Provides comprehensive Python documentation, code examples, standard library references, and programming best practices via Context7's API
Offers React documentation, component examples, hooks usage, state management patterns, and frontend development best practices through Context7
Enables access to Ruby documentation, programming examples, gem usage, and object-oriented programming best practices via Context7's API
Provides Rust documentation, systems programming examples, memory safety patterns, and performance-oriented development best practices through Context7
Offers scikit-learn documentation, machine learning examples, model training patterns, and data science best practices via Context7's API
Enables access to Spring Boot documentation, Java application examples, microservices patterns, and enterprise development best practices through Context7
Provides Svelte documentation, component examples, reactive programming patterns, and modern frontend development best practices via Context7
Offers Swift documentation, iOS development examples, SwiftUI patterns, and mobile application development best practices through Context7
Enables access to TensorFlow documentation, machine learning examples, neural network patterns, and AI development best practices via Context7's API
Provides Terraform documentation, infrastructure as code examples, resource management patterns, and DevOps best practices through Context7
Offers TypeScript documentation, type system examples, JavaScript enhancement patterns, and type-safe development best practices via Context7
Enables access to Vite documentation, build tool examples, development server configuration, and modern frontend tooling best practices through Context7
Provides Webpack documentation, bundling examples, configuration patterns, and JavaScript build process best practices via Context7's API
Context7 MCP Server
MCP server providing access to Context7 API for up-to-date code documentation retrieval.
Features
Core Capabilities
- Documentation Search - Search across thousands of libraries and frameworks 
- Code Examples - Get working code examples for specific use cases 
- API Reference - Detailed API documentation for functions and classes 
- Code Explanation - Understand code with line-by-line explanations 
- Troubleshooting - Get help with error messages and bugs 
- Best Practices - Learn recommended patterns and anti-patterns 
- Migration Guides - Upgrade between versions or switch libraries 
- Library Comparison - Compare different libraries for your use case 
- Changelog Access - View release notes and breaking changes 
Installation
- Clone this repository 
- Install dependencies: 
- Set up your environment variables: 
Configuration
Get Your Context7 API Key
- Go to https://context7.com/api 
- Sign up or sign in 
- Generate an API key 
- Copy the key and add it to your - .envfile
Claude Desktop Configuration
Available Tools
search_documentation
Search for documentation across supported libraries.
Parameters:
- query(required): Search query
- language: Filter by language (javascript, python, go, etc.)
- framework: Filter by framework (react, django, nextjs, etc.)
- limit: Max results (default: 10, max: 50)
Example:
get_library_docs
Get documentation for a specific library.
Parameters:
- library(required): Library name
- version: Specific version (default: latest)
- topic: Specific topic or module
Example:
get_code_examples
Get code examples for a specific use case.
Parameters:
- library(required): Library name
- use_case(required): What you're trying to accomplish
- language: Programming language
Example:
explain_code
Get explanation of code with documentation references.
Parameters:
- code(required): Code snippet to explain
- language: Programming language (auto-detected)
- context: Additional context
Example:
get_api_reference
Get detailed API reference for a function or class.
Parameters:
- library(required): Library name
- api_name(required): API/function/class name
- version: Library version (default: latest)
Example:
compare_libraries
Compare multiple libraries for a use case.
Parameters:
- libraries(required): List of library names
- use_case(required): What you're building
- language: Programming language
Example:
get_migration_guide
Get migration guide between libraries or versions.
Parameters:
- from_library(required): Current library
- to_library(required): Target library
- from_version: Current version
- to_version: Target version
Example:
get_best_practices
Get best practices for a library.
Parameters:
- library(required): Library name
- topic: Specific topic (performance, security, testing, etc.)
Example:
troubleshoot_error
Get help with error messages.
Parameters:
- error_message(required): The error you're seeing
- library: Library where error occurred
- code_context: Code causing the error
Example:
list_supported_libraries
List all supported libraries.
Parameters:
- language: Filter by language
- category: Filter by category
Example:
get_changelog
Get changelog and release notes.
Parameters:
- library(required): Library name
- from_version: Starting version
- to_version: Ending version (default: latest)
Example:
Usage Examples
Search for Documentation
Get Code Examples
Explain Complex Code
Compare Frameworks
Troubleshoot an Error
Migration Help
Supported Languages & Frameworks
Context7 supports documentation for:
Languages
- JavaScript/TypeScript 
- Python 
- Go 
- Rust 
- Java 
- C# 
- PHP 
- Ruby 
- Swift 
- Kotlin 
Popular Frameworks
- Web: React, Vue, Angular, Svelte, Next.js, Nuxt 
- Backend: Express, Django, FastAPI, Spring Boot, Rails 
- Mobile: React Native, Flutter, SwiftUI 
- Data Science: Pandas, NumPy, Scikit-learn, TensorFlow 
- DevOps: Docker, Kubernetes, Terraform, Ansible 
Use Cases
For Developers
- Quick documentation lookup while coding 
- Find working code examples 
- Understand unfamiliar code 
- Troubleshoot errors faster 
- Learn best practices 
For AI Agents
- Provide accurate, up-to-date documentation 
- Generate code with proper library usage 
- Help debug issues with context 
- Recommend appropriate libraries 
- Assist with migrations and upgrades 
Error Handling
The server handles:
- Invalid API keys 
- Rate limiting 
- Network timeouts 
- Invalid library names 
- Malformed queries 
Rate Limits
Context7 API rate limits depend on your plan:
- Free tier: 100 requests/day 
- Pro tier: 10,000 requests/day 
- Enterprise: Custom limits 
Check your usage at: https://context7.com/dashboard
Best Practices
- Be Specific: Include library names and versions when possible 
- Use Filters: Narrow searches with language/framework filters 
- Cache Results: Store frequently accessed documentation 
- Combine Tools: Use search + get_api_reference for comprehensive info 
- Error Context: Provide code context for better troubleshooting 
Security Notes
- Never commit API keys to version control 
- Use environment variables 
- Rotate keys regularly 
- Monitor usage in dashboard 
- Set up usage alerts 
Troubleshooting
"Invalid API Key" Error
- Verify key in - .envfile
- Check key is active at context7.com 
- Ensure no extra spaces 
Rate Limit Errors
- Check current usage in dashboard 
- Upgrade plan if needed 
- Implement caching 
Library Not Found
- Check library name spelling 
- Use list_supported_libraries to verify 
- Some libraries may not be indexed yet 
Resources
License
MIT License - feel free to use in your projects!
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Provides 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.