# Context7 MCP — MCP server on mcp.ai > Connect your Context7 MCP account and use 2 tools for developer tools and devops straight from your AI agent. Connect with your own API key. Context7 MCP pulls up-to-date, version-specific documentation and code examples straight from the source, and places them directly into your prompt. By: mcp.ai · official Page: https://mcp.ai/context7_mcp ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_context7_mcp?ms=1787293560000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/context7_mcp/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/context7_mcp/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/context7_mcp/skill.md Postman collection (v2.1): https://mcp.ai/context7_mcp/postman.json ## Tools - context7_mcp_query_docs(query: string, libraryId: string) — Retrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. - context7_mcp_resolve_library_id(query: string, libraryName: string) — Resolves a package/product name to a Context7-compatible library ID and returns matching libraries. ## Example prompts - "What can I do in Context7 MCP?" - "Show me a summary of my Context7 MCP account" ## Links Docs: https://mcp.ai/docs/mcps/context7_mcp Website: https://mcp.ai/mcps/context7_mcp