|
| 1 | +{ |
| 2 | + "display_name": "Context7 MCP", |
| 3 | + "license": "MIT", |
| 4 | + "tags": [ |
| 5 | + "documentation", |
| 6 | + "LLM", |
| 7 | + "MCP", |
| 8 | + "prompt context", |
| 9 | + "up-to-date docs", |
| 10 | + "code examples", |
| 11 | + "Cursor", |
| 12 | + "Claude", |
| 13 | + "VSCode", |
| 14 | + "Windsurf" |
| 15 | + ], |
| 16 | + "installations": { |
| 17 | + "npm": { |
| 18 | + "type": "npm", |
| 19 | + "command": "npx", |
| 20 | + "args": [ |
| 21 | + "-y", |
| 22 | + "@upstash/context7-mcp@latest" |
| 23 | + ], |
| 24 | + "description": "Install with npx" |
| 25 | + } |
| 26 | + }, |
| 27 | + "tools": [ |
| 28 | + { |
| 29 | + "name": "resolve-library-id", |
| 30 | + "description": "Required first step: Resolves a general package name into a Context7-compatible library ID. Must be called before using 'get-library-docs' to retrieve a valid Context7-compatible library ID.", |
| 31 | + "inputSchema": { |
| 32 | + "type": "object", |
| 33 | + "properties": { |
| 34 | + "libraryName": { |
| 35 | + "type": "string", |
| 36 | + "description": "Library name to search for and retrieve a Context7-compatible library ID." |
| 37 | + } |
| 38 | + }, |
| 39 | + "required": [ |
| 40 | + "libraryName" |
| 41 | + ], |
| 42 | + "additionalProperties": false, |
| 43 | + "$schema": "http://json-schema.org/draft-07/schema#" |
| 44 | + } |
| 45 | + }, |
| 46 | + { |
| 47 | + "name": "get-library-docs", |
| 48 | + "description": "Fetches up-to-date documentation for a library. You must call 'resolve-library-id' first to obtain the exact Context7-compatible library ID required to use this tool.", |
| 49 | + "inputSchema": { |
| 50 | + "type": "object", |
| 51 | + "properties": { |
| 52 | + "context7CompatibleLibraryID": { |
| 53 | + "type": "string", |
| 54 | + "description": "Exact Context7-compatible library ID (e.g., 'mongodb/docs', 'vercel/nextjs') retrieved from 'resolve-library-id'." |
| 55 | + }, |
| 56 | + "topic": { |
| 57 | + "type": "string", |
| 58 | + "description": "Topic to focus documentation on (e.g., 'hooks', 'routing')." |
| 59 | + }, |
| 60 | + "tokens": { |
| 61 | + "type": "number", |
| 62 | + "description": "Maximum number of tokens of documentation to retrieve (default: 5000). Higher values provide more context but consume more tokens." |
| 63 | + } |
| 64 | + }, |
| 65 | + "required": [ |
| 66 | + "context7CompatibleLibraryID" |
| 67 | + ], |
| 68 | + "additionalProperties": false, |
| 69 | + "$schema": "http://json-schema.org/draft-07/schema#" |
| 70 | + } |
| 71 | + } |
| 72 | + ], |
| 73 | + "examples": [ |
| 74 | + { |
| 75 | + "title": "", |
| 76 | + "description": "", |
| 77 | + "prompt": "How do I use the new Next.js `after` function? use context7" |
| 78 | + }, |
| 79 | + { |
| 80 | + "title": "", |
| 81 | + "description": "", |
| 82 | + "prompt": "How do I invalidate a query in React Query? use context7" |
| 83 | + }, |
| 84 | + { |
| 85 | + "title": "", |
| 86 | + "description": "", |
| 87 | + "prompt": "How do I protect a route with NextAuth? use context7" |
| 88 | + } |
| 89 | + ], |
| 90 | + "name": "context7", |
| 91 | + "repository": { |
| 92 | + "type": "git", |
| 93 | + "url": "https://github.com/upstash/context7" |
| 94 | + }, |
| 95 | + "homepage": "https://github.com/upstash/context7", |
| 96 | + "author": { |
| 97 | + "name": "upstash" |
| 98 | + }, |
| 99 | + "description": "LLMs rely on outdated or generic information about the libraries you use. You get:", |
| 100 | + "categories": [ |
| 101 | + "Knowledge Base" |
| 102 | + ], |
| 103 | + "is_official": false |
| 104 | +} |
0 commit comments