# context7 | Upstash | Knowledge Base | Instagit

Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors

GitHub Stars: 45.9k

Repository: https://github.com/upstash/context7

---

## Articles

### [How to Integrate Context7 with Custom AI SDK Implementations](/upstash/context7/how-to-integrate-context7-with-custom-ai-sdk)

Integrate Context7 with custom AI SDKs by initializing the client and adapting existing wrappers. Learn how to seamlessly connect Context7 to your AI projects.

- Tags: how-to-guide
- Published: 2026-02-19

### [When to Use stdio Transport vs HTTP Transport for the Context7 MCP Server](/upstash/context7/when-to-use-stdio-vs-http-transport-for-mcp-server)

Learn when to use stdio transport vs HTTP transport for the Context7 MCP server. Choose stdio for local setups and HTTP for remote deployments, containers, or OAuth needs.

- Tags: best-practices
- Published: 2026-02-19

### [How to Verify the Authenticity of Documentation Retrieved from Context7](/upstash/context7/how-to-verify-authenticity-of-context7-documentation)

Learn how to verify documentation authenticity in Context7 using its library verification system. Ensure trusted content with high trust scores. Secure your information today.

- Tags: how-to-guide
- Published: 2026-02-16

### [What Happens When Library Versions Are Not Explicitly Specified in Context7 Queries](/upstash/context7/context7-behavior-for-unspecified-library-versions)

Discover what happens when library versions are not specified in Context7 queries. Learn how SDKs default to the latest stable version automatically.

- Tags: internals
- Published: 2026-02-16

### [Recommended Context7 Prompt Structure for Accurate Documentation](/upstash/context7/recommended-prompt-structure-for-context7-documentation)

Learn the recommended Context7 prompt structure for accurate, version-specific documentation. Follow the three-step pattern for best results. Optimize your queries now.

- Tags: how-to-guide
- Published: 2026-02-16

### [How Context7 Compares to Other AI Documentation Tools: A Technical Deep Dive](/upstash/context7/context7-vs-other-ai-documentation-tools)

Compare Context7 to other AI documentation tools. Discover how Context7 offers live, version-specific docs without vector store maintenance unlike static indexing.

- Tags: deep-dive
- Published: 2026-02-16

### [How to Define Custom Skills in Context7: A Complete Guide](/upstash/context7/context7-custom-skills-definition-and-function)

Learn to define custom skills in Context7 using SKILL.md files. Extend your AI coding assistant with domain specific knowledge and structured markdown instructions. Master reusable prompt bundles.

- Tags: how-to-guide
- Published: 2026-02-16

### [How to Claim a Library in Context7: Complete Guide to the Library Claiming Process](/upstash/context7/context7-library-claiming-process-and-usage)

Master the Context7 library claiming process to verify repository ownership. Gain access to documentation management and analytics with this complete guide from upstash.

- Tags: how-to-guide
- Published: 2026-02-16

### [How Context7 Handles Ambiguous Library Name Resolution](/upstash/context7/how-context7-handles-ambiguous-library-name-resolution)

Context7 resolves ambiguous library names by providing a ranked list of plausible matches. It uses a deterministic pipeline with relevance scoring for accurate results.

- Tags: internals
- Published: 2026-02-16

### [How to Handle Private Repositories with Context7: A Complete Guide](/upstash/context7/how-to-handle-private-repositories-with-context7)

Learn how to handle private repositories with Context7. Securely connect to GitHub, GitLab, or Bitbucket by obtaining an API key and authenticating SDK requests. Access private docs easily.

- Tags: how-to-guide
- Published: 2026-02-16

### [Security Measures That Protect API Key and OAuth Authentication in Context7](/upstash/context7/context7-security-measures-for-authentication)

Discover how Context7 secures API key and OAuth authentication with mandatory validation, Bearer token transmission, RFC-compliant discovery, and JWT verification for robust protection.

- Tags: best-practices
- Published: 2026-02-16

### [Troubleshooting Documentation Retrieval Failures in Context7: A Complete Guide](/upstash/context7/context7-troubleshooting-documentation-retrieval-failures)

Resolve Context7 documentation retrieval failures with this guide. Learn to troubleshoot API authentication, library IDs, and documentation states by tracing requests through the architecture.

- Tags: how-to-guide
- Published: 2026-02-16

### [How Auto-Invocation Rules Work in Context7 to Eliminate Manual Commands](/upstash/context7/how-context7-auto-invocation-rules-work)

Discover how auto-invocation rules in Context7 eliminate manual commands by automatically triggering the "use context7" command. Streamline your workflow and query library documentation effortlessly.

- Tags: how-to-guide
- Published: 2026-02-16

### [How to Integrate the Context7 Chat Widget with Your Application](/upstash/context7/how-to-integrate-context7-chat-widget)

Easily integrate the Context7 chat widget into your application with a simple script tag. Follow our guide to add real-time chat functionality to your site.

- Tags: how-to-guide
- Published: 2026-02-16

### [How to Add Your Library to Context7 for AI-Powered Documentation](/upstash/context7/how-to-add-my-library-to-context7-for-ai-powered-documentation)

Easily add your library to Context7 for AI-powered documentation. Submit your repo URL or add a context7.json file to get started.

- Tags: how-to-guide
- Published: 2026-02-16

### [Context7 Rate Limits and API Key Authentication: Complete Technical Guide](/upstash/context7/context7-rate-limits-and-api-key-authentication)

Understand Context7 rate limits and API key authentication. Learn how to manage quotas with HTTP 429 responses and Bearer tokens for higher limits.

- Tags: deep-dive
- Published: 2026-02-16

### [Context7 OAuth 2.0 Flows: Authorization Code with PKCE Configuration Guide](/upstash/context7/context7-oauth-2-0-flows-and-configuration)

Configure Context7 OAuth 2.0 Authorization Code with PKCE flow. Easily authenticate users via your browser by switching to the /mcp/oauth endpoint and running ctx7 login.

- Tags: how-to-guide
- Published: 2026-02-16

### [How to Run the Context7 MCP Server Locally for Development](/upstash/context7/how-to-run-context7-mcp-server-locally)

Learn how to run the Context7 MCP server locally for development using npx, Docker, or from source. Configure transport modes for flexible integration.

- Tags: how-to-guide
- Published: 2026-02-16

### [Context7 Library ID Format and Version Specification Guide](/upstash/context7/what-is-the-library-id-format-and-how-do-i-specify-versions-in-queries)

Learn the Context7 library ID format owner/repo and specify versions with a clear syntax guide. Understand the path structure for latest and specific releases in your queries. Read now.

- Tags: api-reference
- Published: 2026-02-16

### [How the `resolve-library-id` Tool Selects the Best Library Match in Context7](/upstash/context7/how-resolve-library-id-tool-selects-best-library-match)

Learn how resolve-library-id selects the best library match by delegating to the Context7 API, which ranks candidates by relevance to your query and returns the top result first.

- Tags: how-to-guide
- Published: 2026-02-16

### [How to Configure Context7 MCP Transport: stdio vs HTTP Setup Guide](/upstash/context7/how-to-configure-context7-mcp-for-different-transport-types)

Configure Context7 MCP transport with stdio or HTTP. Learn to set up CLI or network communication efficiently using the --transport flag and specific options.

- Tags: how-to-guide
- Published: 2026-02-16

### [Context7 MCP Authentication Methods: API Key vs OAuth 2.0 Guide](/upstash/context7/what-authentication-methods-does-context7-mcp-support)

Context7 MCP offers API key and OAuth 2.0 authentication. Understand the differences and choose the right method for your needs.

- Tags: api-reference
- Published: 2026-02-16

