MCP Servers
The Compound Engineering plugin bundles 1 MCP server that provides access to framework documentation and API references.What Are MCP Servers?
MCP (Model Context Protocol) servers extend Claude’s capabilities by providing access to external data sources and APIs. They expose tools that Claude can invoke to fetch information, query databases, or interact with third-party services. How they work:- MCP server runs as a separate process (HTTP or SSE)
- Claude discovers available tools from the server
- When needed, Claude calls tools to fetch data
- Results are incorporated into Claude’s context
Context7 Server
The Context7 MCP server provides access to documentation for 100+ frameworks and libraries.Configuration
The server is configured in.mcp.json:
Tools Provided
The Context7 server exposes two tools:| Tool | Description | Example Usage |
|---|---|---|
resolve-library-id | Find library ID for a framework/package | Get ID for “rails”, “react”, “next.js” |
get-library-docs | Get documentation for a specific library | Fetch API docs for a library ID |
Supported Frameworks
Context7 supports 100+ frameworks including: Backend:- Ruby on Rails
- Django
- Laravel
- Express.js
- FastAPI
- Spring Boot
- ASP.NET Core
- React
- Vue
- Angular
- Svelte
- Next.js
- Nuxt.js
- Remix
- React Native
- Flutter
- SwiftUI
- Jetpack Compose
- PostgreSQL
- MySQL
- MongoDB
- Redis
- Elasticsearch
Usage Examples
Example 1: Finding Rails ActiveRecord documentation
Example 1: Finding Rails ActiveRecord documentation
Example 2: React Hook documentation
Example 2: React Hook documentation
When Context7 Is Used
Context7 is automatically queried during:/ce:plan- When researching framework-specific patterns/deepen-plan- Viaframework-docs-researcheragent- Ad-hoc questions - When you ask about framework APIs
Known Issues
Verifying MCP Server Status
To check if the Context7 server is loaded:Adding Custom MCP Servers
You can add your own MCP servers alongside Context7:- HTTP - Remote HTTP server (like Context7)
- SSE - Local process using Server-Sent Events
- STDIO - Local process using standard I/O
Using MCP Tools Directly
You can explicitly ask Claude to use MCP tools:- Call
resolve-library-idto get React’s library ID - Call
get-library-docswith your query - Return the documentation
MCP Server Performance
Context7 is a remote HTTP server, so queries have network latency. Typical response times:resolve-library-id: 100-300msget-library-docs: 300-800ms (depending on query complexity)
Future MCP Servers
Planned MCP servers for future releases:- GitHub Integration - Query issues, PRs, code search
- Database Inspector - Query schema, run read-only SQL
- API Documentation - OpenAPI/Swagger spec lookup
- Dependency Analyzer - Package vulnerability and update checks
Want to contribute an MCP server to the plugin? See Contributing Guide for how to submit new MCP server integrations.
Troubleshooting
Context7 tools not working
Check:- Is the server configured? Check
.claude/settings.json - Is there a network connection? Context7 is a remote service
- Are you behind a firewall? Context7 requires HTTPS access
- Apply the manual configuration workaround above
- Check network connectivity:
curl https://mcp.context7.com/mcp - If behind corporate firewall, contact IT to allowlist
mcp.context7.com
Server timeout errors
Cause: Network latency or Context7 service unavailable Solution:- Retry the query
- If persistent, check Context7 status page (if available)
- Fall back to web search if Context7 is down
See Also
- Commands - Commands that use Context7 (e.g.,
/deepen-plan) - Agents -
framework-docs-researcheragent uses Context7 - MCP Protocol Docs - Official MCP specification
- Creating MCP Servers - Guide for building custom servers