Context7 · geobio — Claude Code MCP server: what it does, how to install
Context7 puts version-aware library documentation and code examples into an agent’s context. Use it when API details need a current reference.
no license 1,447 installs updated 2025-05-30
claude mcp add --transport http context7 https://context7--geobio.run.toolsWhat Context7 does
Context7 connects to an MCP client through two tools. resolve-library-id matches a package or product name with a Context7 library ID, while get-library-docs retrieves documentation for that library. This gives the coding agent concrete API material to use in its answer.
The lookup step comes first unless the prompt already contains an ID such as /org/project or /org/project/version. The remote server is https://context7--geobio.run.tools. A valid library ID is required before get-library-docs can fetch the requested documentation.
What it helps with
- look up the Context7 ID for a package
- fetch documentation for a specific library version
- give an agent current API examples
- check code against a library’s documented methods
Example prompts for the agent
- Use Context7 to check the current API for
reactbefore changing this component. - Resolve the library ID for
postgres, then show the documented way to run this query. - Review these calls against
/org/project/versiondocumentation and fix the API usage.
How to install Context7
Platform CLI: remote server
claude mcp add --transport http context7 https://context7--geobio.run.toolsPlatform CLI: remote server
codex mcp add geobio-context7 --url https://context7--geobio.run.toolsConfig file
{
"mcpServers": {
"geobio-context7": {
"url": "https://context7--geobio.run.tools"
}
}
}Config file
{
"servers": {
"geobio-context7": {
"type": "http",
"url": "https://context7--geobio.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http geobio-context7 https://context7--geobio.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Context7
How do I install Context7 in Claude Code?
Run claude mcp add --transport http context7 https://context7--geobio.run.tools. Claude Code will add the server as context7.
What does Context7 do?
It resolves a package or product to a library ID and fetches its documentation for the agent. The returned context can include version-specific API details and examples.
Does resolve-library-id have to run first?
Yes, unless the prompt already supplies an ID in the form /org/project or /org/project/version. Call it before get-library-docs.
Similar MCP servers
All MCP servers for Writing and docs →Context7 by other authors comes first.