Skip to main content
Glama

Context7 MCP server

Install Context7 MCP server in Claude Code:

claude mcp add --scope user --transport http context7 https://mcp.context7.ai/mcp

Restart Claude Code, then claude mcp list. You want context7 in that list.

Same command on context7.ai.

Installation

That command is the install. --scope user puts it in every project. Leave the flag off if you only want the current repo.

Optional API key (rate limits, private repos). Make one at context7.ai/dashboard, then:

claude mcp add --scope user --header "Authorization: Bearer YOUR_API_KEY" --transport http context7 https://mcp.context7.ai/mcp

Claude Desktop, Cursor, VS Code, Windsurf

JSON config: under mcpServers, add context7 with type http and url https://mcp.context7.ai/mcp. Drop-in files: examples/claude_desktop_config.json, examples/cursor.json, examples/vscode.json, examples/windsurf.json.

Claude Code plugin: plugins/claude/context7. Skill: skills/context7-mcp/SKILL.md. MCP registry manifest: server.json.

Remote HTTP vs local npx: this page is the remote. npx ctx7 setup and npx -y @upstash/context7-mcp are the local/stdio path. I use the remote so I do not run another Node process.

Related MCP server: MCP Framework Documentation Server

Usage

Ask for something library-specific and add use context7 to the prompt.

Tools

Once it is connected you get Context7's tools, resolve-library-id and query-docs.

Troubleshooting

context7 mcp not connecting / context7 mcp server not found: run claude mcp list. Missing means the add did not stick, or you skipped the restart. Listed but dead usually means you added both mcp.context7.ai and mcp.context7.com under the same name.

spawn context7-mcp ENOENT is a local stdio install that cannot find a binary. Use the remote HTTP command above.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

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/falcon077/context7-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server