|
| 1 | +# Adding Context7 MCP Server |
| 2 | + |
| 3 | +<Intro> |
| 4 | +Context7 is a Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to Jumppad documentation, examples, and best practices. |
| 5 | +</Intro> |
| 6 | + |
| 7 | +## What is Context7? |
| 8 | + |
| 9 | +Context7 is an MCP server that allows AI assistants like Claude to access real-time, comprehensive information about Jumppad resources, configuration patterns, and documentation. This enables more accurate and up-to-date assistance when working with Jumppad configurations. |
| 10 | + |
| 11 | +## Installation |
| 12 | + |
| 13 | +### Claude Desktop |
| 14 | + |
| 15 | +To add the Context7 MCP server to your Claude Desktop configuration, you'll need to modify your Claude Desktop configuration file. |
| 16 | + |
| 17 | +#### Configuration |
| 18 | + |
| 19 | +Add the following configuration to your Claude Desktop MCP settings: |
| 20 | + |
| 21 | +```json |
| 22 | +{ |
| 23 | + "mcpServers": { |
| 24 | + "context7": { |
| 25 | + "command": "npx", |
| 26 | + "args": ["@context7/mcp-server"] |
| 27 | + } |
| 28 | + } |
| 29 | +} |
| 30 | +``` |
| 31 | + |
| 32 | +#### Configuration File Locations |
| 33 | + |
| 34 | +The Claude Desktop configuration file is located at: |
| 35 | + |
| 36 | +- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json` |
| 37 | +- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json` |
| 38 | +- **Linux**: `~/.config/Claude/claude_desktop_config.json` |
| 39 | + |
| 40 | +### Claude Code |
| 41 | + |
| 42 | +For Claude Code users, you can easily add the Context7 MCP server using the built-in MCP management command: |
| 43 | + |
| 44 | +```shell |
| 45 | +claude mcp add --transport sse context7 https://mcp.context7.com/sse |
| 46 | +``` |
| 47 | + |
| 48 | +This command will automatically configure the Context7 MCP server for use with Claude Code. |
| 49 | + |
| 50 | +### VS Code |
| 51 | + |
| 52 | +For VS Code users, you can add the Context7 MCP server to GitHub Copilot by adding this configuration to your VS Code settings: |
| 53 | + |
| 54 | +```json |
| 55 | +{ |
| 56 | + "mcp": { |
| 57 | + "servers": { |
| 58 | + "context7": { |
| 59 | + "type": "http", |
| 60 | + "url": "https://mcp.context7.com/mcp" |
| 61 | + } |
| 62 | + } |
| 63 | + } |
| 64 | +} |
| 65 | +``` |
| 66 | + |
| 67 | +## Usage |
| 68 | + |
| 69 | +Once configured, the Context7 MCP server will automatically provide Claude with access to: |
| 70 | + |
| 71 | +- Complete Jumppad documentation |
| 72 | +- Resource configuration examples |
| 73 | +- Best practices and patterns |
| 74 | +- Latest updates and changes |
| 75 | + |
| 76 | +When asking Claude about Jumppad-related topics, it will automatically query the Context7 server to provide the most accurate and current information. |
| 77 | + |
| 78 | +## Project Configuration |
| 79 | + |
| 80 | +The Context7 server uses the `context7.json` configuration file in the repository root to understand the project structure and documentation scope. This file defines which folders and file types to include when providing context about Jumppad. |
| 81 | + |
| 82 | +## Troubleshooting |
| 83 | + |
| 84 | +If you encounter issues with the Context7 MCP server: |
| 85 | + |
| 86 | +1. Ensure you have Node.js installed on your system |
| 87 | +2. Verify the configuration file path is correct for your operating system |
| 88 | +3. Restart Claude Desktop after making configuration changes |
| 89 | +4. Check that the `context7.json` file exists in your project repository |
| 90 | + |
| 91 | +For additional support, refer to the [Context7 documentation](https://context7.com) or the [MCP specification](https://modelcontextprotocol.io). |
0 commit comments