Skip to content

Context7 Platform -- Up-to-date docs for AI agents

chore: format

enesgulesec106795ec80
diff --git a/docs/adding-libraries.mdx b/docs/adding-libraries.mdx
index 54ddda81..d0e2ebcc 100644
--- a/docs/adding-libraries.mdx
+++ b/docs/adding-libraries.mdx
@@ -43,7 +43,8 @@ Here's an example `context7.json` file with all available options:
```
<Note>
-**Pro Tip**: Including the `$schema` field enables autocomplete, validation, and helpful tooltips in modern code editors like VS Code, making it easier to create and maintain your configuration.
+ **Pro Tip**: Including the `$schema` field enables autocomplete, validation, and helpful tooltips
+ in modern code editors like VS Code, making it easier to create and maintain your configuration.
</Note>
## Field Descriptions
@@ -139,9 +140,7 @@ To add a new version to your existing library:
]
```
- <Note>
- The `tag` value must exactly match an existing Git tag in your GitHub repository.
- </Note>
+ <Note>The `tag` value must exactly match an existing Git tag in your GitHub repository.</Note>
2. **Refresh your library**: Go to your library page on Context7 and trigger a refresh to index the new version.
3. **Confirm availability**: Search for the new version or run `resolve-library-id` from an MCP client to confirm it appears in results.
diff --git a/docs/api.mdx b/docs/api.mdx
index 9dfbd8fb..1a92eab6 100644
--- a/docs/api.mdx
+++ b/docs/api.mdx
@@ -21,7 +21,8 @@ Authorization: Bearer CONTEXT7_API_KEY
Get your API key at [context7.com/dashboard](https://context7.com/dashboard).
<Warning>
-Treat your API key like a password. Store it in an environment variable or secret manager and rotate it immediately if you suspect it has leaked.
+ Treat your API key like a password. Store it in an environment variable or secret manager and
+ rotate it immediately if you suspect it has leaked.
</Warning>
## Endpoints
@@ -37,21 +38,23 @@ Retrieve documentation and code examples for a specific library.
**Endpoint**: `/v1/[library]`
**URL Format**:
+
- `/v1/{owner}/{repo}` - Get latest version
- `/v1/{owner}/{repo}/{version}` - Get specific version
**Examples**:
+
- `/v1/vercel/next.js`
- `/v1/vercel/next.js/v15.1.8`
- `/v1/upstash/docs`
#### Query Parameters
-| Parameter | Type | Required | Default | Description |
-|-----------|------|----------|---------|-------------|
-| `type` | string | No | `txt` | Format of the response: `txt` or `json` |
-| `topic` | string | No | - | Topic to search/rerank the results |
-| `tokens` | number | No | `10000` | Maximum token count to be included in the result |
+| Parameter | Type | Required | Default | Description |
+| --------- | ------ | -------- | ------- | ------------------------------------------------ |
+| `type` | string | No | `txt` | Format of the response: `txt` or `json` |
+| `topic` | string | No | - | Topic to search/rerank the results |
+| `tokens` | number | No | `10000` | Maximum token count to be included in the result |
#### Examples
@@ -63,26 +66,20 @@ Retrieve documentation and code examples for a specific library.
```
</Accordion>
- <Accordion title="Using JSON format">
- ```bash
- curl "https://context7.com/api/v1/vercel/next.js?type=json" \
- -H "Authorization: Bearer CONTEXT7_API_KEY"
- ```
- </Accordion>
+<Accordion title="Using JSON format">
+ ```bash curl "https://context7.com/api/v1/vercel/next.js?type=json" \ -H "Authorization: Bearer
+ CONTEXT7_API_KEY" ```
+</Accordion>
- <Accordion title="Specifying a topic">
- ```bash
- curl "https://context7.com/api/v1/vercel/next.js?topic=routing" \
- -H "Authorization: Bearer CONTEXT7_API_KEY"
- ```
- </Accordion>
+<Accordion title="Specifying a topic">
+ ```bash curl "https://context7.com/api/v1/vercel/next.js?topic=routing" \ -H "Authorization:
+ Bearer CONTEXT7_API_KEY" ```
+</Accordion>
- <Accordion title="Limiting token count">
- ```bash
- curl "https://context7.com/api/v1/vercel/next.js?tokens=2000" \
- -H "Authorization: Bearer CONTEXT7_API_KEY"
- ```
- </Accordion>
+<Accordion title="Limiting token count">
+ ```bash curl "https://context7.com/api/v1/vercel/next.js?tokens=2000" \ -H "Authorization: Bearer
+ CONTEXT7_API_KEY" ```
+</Accordion>
<Accordion title="Multiple parameters">
```bash
@@ -130,9 +127,9 @@ Search for libraries in the Context7 database.
#### Query Parameters
-| Parameter | Type | Required | Description |
-|-----------|------|----------|-------------|
-| `query` | string | Yes | Library name to search for |
+| Parameter | Type | Required | Description |
+| --------- | ------ | -------- | -------------------------- |
+| `query` | string | Yes | Library name to search for |
#### Example
@@ -178,20 +175,20 @@ Returns up to 50 matching libraries.
#### Response Fields
-| Field | Type | Description |
-|-------|------|-------------|
-| `id` | string | Library ID in format `/owner/repo` |
-| `title` | string | Display name of the library |
-| `description` | string | Short description |
-| `branch` | string | Git branch being tracked |
-| `lastUpdateDate` | string | ISO 8601 timestamp of last update |
-| `state` | string | Processing state: `finalized`, `initial`, `error`, or `delete` |
-| `totalTokens` | number | Total tokens in documentation |
-| `totalSnippets` | number | Number of code snippets |
-| `totalPages` | number | Number of documentation pages |
-| `stars` | number | GitHub stars count |
-| `trustScore` | number | Authority score (0-10) |
-| `versions` | array | Available version tags |
+| Field | Type | Description |
+| ---------------- | ------ | -------------------------------------------------------------- |
+| `id` | string | Library ID in format `/owner/repo` |
+| `title` | string | Display name of the library |
+| `description` | string | Short description |
+| `branch` | string | Git branch being tracked |
+| `lastUpdateDate` | string | ISO 8601 timestamp of last update |
+| `state` | string | Processing state: `finalized`, `initial`, `error`, or `delete` |
+| `totalTokens` | number | Total tokens in documentation |
+| `totalSnippets` | number | Number of code snippets |
+| `totalPages` | number | Number of documentation pages |
+| `stars` | number | GitHub stars count |
+| `trustScore` | number | Authority score (0-10) |
+| `versions` | array | Available version tags |
---
@@ -209,14 +206,14 @@ Submit a new library to Context7 for indexing.
#### Request Body
-| Field | Type | Required | Description |
-|-------|------|----------|-------------|
-| `docsRepoUrl` | string | Yes | GitHub repository URL |
-| `projectTitle` | string | No | Display name for the project |
-| `branch` | string | No | Git branch to parse (default: repository's default branch) |
-| `folders` | array | No | Specific folders to include for documentation |
-| `excludeFolders` | array | No | Folders to exclude from parsing |
-| `excludeFiles` | array | No | Files to exclude from parsing |
+| Field | Type | Required | Description |
+| ---------------- | ------ | -------- | ---------------------------------------------------------- |
+| `docsRepoUrl` | string | Yes | GitHub repository URL |
+| `projectTitle` | string | No | Display name for the project |
+| `branch` | string | No | Git branch to parse (default: repository's default branch) |
+| `folders` | array | No | Specific folders to include for documentation |
+| `excludeFolders` | array | No | Folders to exclude from parsing |
+| `excludeFiles` | array | No | Files to exclude from parsing |
#### Examples
@@ -313,13 +310,13 @@ The `status` field transitions through `processing → finalized`. Poll the libr
## Error Codes
-| Code | Description |
-|------|-------------|
-| 200 | Success |
-| 401 | Unauthorized - Invalid or missing API key |
-| 404 | Not Found - Library or endpoint doesn't exist |
-| 429 | Too Many Requests - Rate limit exceeded |
-| 500 | Internal Server Error |
+| Code | Description |
+| ---- | --------------------------------------------- |
+| 200 | Success |
+| 401 | Unauthorized - Invalid or missing API key |
+| 404 | Not Found - Library or endpoint doesn't exist |
+| 429 | Too Many Requests - Rate limit exceeded |
+| 500 | Internal Server Error |
```json
{
@@ -347,6 +344,7 @@ For easier integration, consider using:
## Support
For API support and questions:
+
- Documentation: [docs.context7.com](https://docs.context7.com)
- GitHub Issues: [github.com/upstash/context7/issues](https://github.com/upstash/context7/issues)
- Discord: [upstash.com/discord](https://upstash.com/discord)
diff --git a/docs/contact.mdx b/docs/contact.mdx
index 9c2c8347..e9a0a2da 100644
--- a/docs/contact.mdx
+++ b/docs/contact.mdx
@@ -149,14 +149,7 @@ Alternatively, use this configuration with `cmd`:
"mcpServers": {
"context7": {
"command": "cmd",
- "args": [
- "/c",
- "npx",
- "-y",
- "@upstash/context7-mcp",
- "--api-key",
- "YOUR_API_KEY"
- ]
+ "args": ["/c", "npx", "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}
@@ -186,7 +179,8 @@ On macOS, some users may encounter the same request timeout errors. Use the full
```
<Note>
-Replace `yourname` and the Node.js version (`v22.14.0`) with your actual username and installed Node.js version.
+ Replace `yourname` and the Node.js version (`v22.14.0`) with your actual username and installed
+ Node.js version.
</Note>
## API and Connection Issues
@@ -219,6 +213,7 @@ If you see `401 Unauthorized` errors:
2. **Check the header format** - ensure the API key is properly set:
For HTTP transport:
+
```json
{
"headers": {
@@ -228,6 +223,7 @@ For HTTP transport:
```
For stdio transport:
+
```json
{
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
diff --git a/docs/docs.json b/docs/docs.json
index 21264ce1..24a177cb 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -1,93 +1,93 @@
{
- "$schema": "https://mintlify.com/docs.json",
- "theme": "maple",
- "name": "Context7 MCP",
- "description": "Up-to-date code docs for any prompt.",
- "colors": {
- "primary": "#3B82F6",
- "light": "#F8FAFC",
- "dark": "#0F172A"
- },
- "navigation": {
- "pages": [
- "overview",
- "installation",
- "usage",
- "adding-libraries",
- "plans-pricing",
- "api",
- "security",
- "contact"
- ]
- },
- "logo": {
- "light": "/logo/logo.svg",
- "dark": "/logo/logo-dark.svg",
- "href": "https://context7.com"
- },
- "navbar": {
- "links": [
- {
- "label": "Discord",
- "href": "https://upstash.com/discord"
- },
- {
- "label": "GitHub",
- "href": "https://github.com/upstash/context7"
- }
- ],
- "primary": {
- "type": "button",
- "label": "Dashboard",
- "href": "https://context7.com"
+ "$schema": "https://mintlify.com/docs.json",
+ "theme": "maple",
+ "name": "Context7 MCP",
+ "description": "Up-to-date code docs for any prompt.",
+ "colors": {
+ "primary": "#3B82F6",
+ "light": "#F8FAFC",
+ "dark": "#0F172A"
+ },
+ "navigation": {
+ "pages": [
+ "overview",
+ "installation",
+ "usage",
+ "adding-libraries",
+ "plans-pricing",
+ "api",
+ "security",
+ "contact"
+ ]
+ },
+ "logo": {
+ "light": "/logo/logo.svg",
+ "dark": "/logo/logo-dark.svg",
+ "href": "https://context7.com"
+ },
+ "navbar": {
+ "links": [
+ {
+ "label": "Discord",
+ "href": "https://upstash.com/discord"
+ },
+ {
+ "label": "GitHub",
+ "href": "https://github.com/upstash/context7"
}
+ ],
+ "primary": {
+ "type": "button",
+ "label": "Dashboard",
+ "href": "https://context7.com"
+ }
+ },
+ "footer": {
+ "socials": {
+ "x": "https://x.com/context7ai",
+ "github": "https://github.com/upstash/context7",
+ "discord": "https://upstash.com/discord"
},
- "footer": {
- "socials": {
- "x": "https://x.com/context7ai",
- "github": "https://github.com/upstash/context7",
- "discord": "https://upstash.com/discord"
+ "links": [
+ {
+ "header": "Resources",
+ "items": [
+ {
+ "label": "Website",
+ "href": "https://context7.com"
+ },
+ {
+ "label": "Submit a Library",
+ "href": "https://context7.com/add-library"
+ },
+ {
+ "label": "Dashboard",
+ "href": "https://context7.com/dashboard"
+ }
+ ]
},
- "links": [
- {
- "header": "Resources",
- "items": [
- {
- "label": "Website",
- "href": "https://context7.com"
- },
- {
- "label": "Submit a Library",
- "href": "https://context7.com/add-library"
- },
- {
- "label": "Dashboard",
- "href": "https://context7.com/dashboard"
- }
- ]
- },
- {
- "header": "Community",
- "items": [
- {
- "label": "GitHub",
- "href": "https://github.com/upstash/context7"
- },
- {
- "label": "Discord",
- "href": "https://upstash.com/discord"
- },
- {
- "label": "Twitter",
- "href": "https://x.com/context7ai"
- }
- ]
- }
- ]
- },
- "feedback": {
- "thumbsRating": true,
- "suggestEdit": true,
- "raiseIssue": true
- }
- }
\ No newline at end of file
+ {
+ "header": "Community",
+ "items": [
+ {
+ "label": "GitHub",
+ "href": "https://github.com/upstash/context7"
+ },
+ {
+ "label": "Discord",
+ "href": "https://upstash.com/discord"
+ },
+ {
+ "label": "Twitter",
+ "href": "https://x.com/context7ai"
+ }
+ ]
+ }
+ ]
+ },
+ "feedback": {
+ "thumbsRating": true,
+ "suggestEdit": true,
+ "raiseIssue": true
+ }
+}
diff --git a/docs/installation.mdx b/docs/installation.mdx
index 7582431c..cdc1357f 100644
--- a/docs/installation.mdx
+++ b/docs/installation.mdx
@@ -16,6 +16,7 @@ Before you begin, make sure you have:
**SSE Protocol Deprecation Notice**
The Server-Sent Events (SSE) transport protocol is deprecated and its endpoint will be removed in upcoming releases. Please use HTTP or stdio transport methods instead.
+
</Warning>
## Quick Install
@@ -69,6 +70,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="Claude Code" icon="code">
@@ -82,6 +84,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
```bash
claude mcp add context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEY
```
+
</Accordion>
<Accordion title="VS Code" icon="code">
@@ -114,6 +117,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="Windsurf" icon="wind">
@@ -142,6 +146,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="Amp" icon="terminal">
@@ -154,6 +159,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
```sh
amp mcp add context7 --header "CONTEXT7_API_KEY=YOUR_API_KEY" https://mcp.context7.com/mcp
```
+
</Accordion>
<Accordion title="Cline" icon="robot">
@@ -178,6 +184,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="Zed" icon="text">
@@ -194,6 +201,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="Augment Code" icon="a">
@@ -215,6 +223,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
]
}
```
+
</Accordion>
<Accordion title="Roo Code" icon="code">
@@ -244,6 +253,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="Gemini CLI" icon="google">
@@ -275,6 +285,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="Claude Desktop" icon="message">
@@ -294,6 +305,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="Opencode" icon="code">
@@ -323,6 +335,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="OpenAI Codex" icon="openai">
@@ -353,6 +366,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
"--transport", "stdio", "--api-key", "YOUR_API_KEY"
]
```
+
</Accordion>
<Accordion title="JetBrains AI Assistant" icon="code">
@@ -373,6 +387,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
```
5. Click `Apply`
+
</Accordion>
<Accordion title="Kiro" icon="k">
@@ -393,6 +408,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="Trae" icon="robot">
@@ -418,6 +434,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="LM Studio" icon="microchip">
@@ -435,6 +452,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="Visual Studio 2022" icon="microsoft">
@@ -468,6 +486,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="Crush" icon="terminal">
@@ -500,6 +519,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="BoltAI" icon="bolt">
@@ -517,6 +537,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
```
Use `get-library-docs` in chat with your Context7 documentation ID.
+
</Accordion>
<Accordion title="Rovo Dev CLI" icon="terminal">
@@ -547,6 +568,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="Zencoder" icon="code">
@@ -561,6 +583,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
```
+
</Accordion>
<Accordion title="Qodo Gen" icon="code">
@@ -590,6 +613,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="Perplexity Desktop" icon="search">
@@ -605,6 +629,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
"env": {}
}
```
+
</Accordion>
<Accordion title="Warp" icon="terminal">
@@ -623,6 +648,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="Copilot Coding Agent" icon="github">
@@ -642,6 +668,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
<Accordion title="Amazon Q Developer CLI" icon="amazon">
@@ -672,6 +699,7 @@ Find your Smithery key at [smithery.ai](https://smithery.ai/server/@upstash/cont
}
}
```
+
</Accordion>
</AccordionGroup>
@@ -749,5 +777,6 @@ npx -y @modelcontextprotocol/inspector npx @upstash/context7-mcp
```
<Tip>
-Having trouble? Check our [Troubleshooting Guide](/troubleshooting) for common issues and solutions.
+ Having trouble? Check our [Troubleshooting Guide](/troubleshooting) for common issues and
+ solutions.
</Tip>
diff --git a/docs/plans-pricing.mdx b/docs/plans-pricing.mdx
index 4a78348e..59cef6dd 100644
--- a/docs/plans-pricing.mdx
+++ b/docs/plans-pricing.mdx
@@ -6,22 +6,22 @@ Pick the plan that matches how you work today and scale when your needs grow.
## Compare Plans
-| Feature | Free | Pro | Enterprise |
-|---------|------|-----|------------|
-| **Price** | $0 | $7 per seat/month | Custom |
-| **Public Repositories** | ✓ | ✓ | ✓ |
-| **Private Repositories** | ✗ | ✓ | ✓ |
-| **Team Collaboration** | ✗ | ✓ (up to 20 members) | ✓ (unlimited) |
-| **API Rate Limit** | 60 req/hour | 60 req/hour per member | Custom |
-| **Parse Token Cost** | N/A | $15 per 1M tokens | Custom |
-| **Access Control** | Basic | Full | Advanced |
-| **SOC-2 Compliance** | ✗ | ✗ | ✓ |
-| **SSO (SAML, OAuth, OIDC)** | ✗ | ✗ | ✓ |
-| **Support** | Community | Email | Dedicated |
-| **Usage Analytics** | Basic | ✓ | Advanced |
-| **Custom Rate Limits** | ✗ | ✗ | ✓ |
-| **Priority Features** | ✗ | ✗ | ✓ |
-| **Custom SLA** | ✗ | ✗ | ✓ |
+| Feature | Free | Pro | Enterprise |
+| --------------------------- | ----------- | ---------------------- | ------------- |
+| **Price** | $0 | $7 per seat/month | Custom |
+| **Public Repositories** | ✓ | ✓ | ✓ |
+| **Private Repositories** | ✗ | ✓ | ✓ |
+| **Team Collaboration** | ✗ | ✓ (up to 20 members) | ✓ (unlimited) |
+| **API Rate Limit** | 60 req/hour | 60 req/hour per member | Custom |
+| **Parse Token Cost** | N/A | $15 per 1M tokens | Custom |
+| **Access Control** | Basic | Full | Advanced |
+| **SOC-2 Compliance** | ✗ | ✗ | ✓ |
+| **SSO (SAML, OAuth, OIDC)** | ✗ | ✗ | ✓ |
+| **Support** | Community | Email | Dedicated |
+| **Usage Analytics** | Basic | ✓ | Advanced |
+| **Custom Rate Limits** | ✗ | ✗ | ✓ |
+| **Priority Features** | ✗ | ✗ | ✓ |
+| **Custom SLA** | ✗ | ✗ | ✓ |
## Frequently Asked Questions
@@ -32,13 +32,17 @@ Pick the plan that matches how you work today and scale when your needs grow.
The Free plan includes access to public repositories, basic access control, and API usage with rate limits. It's perfect for individual developers who don't need private repositories or team collaboration.
</Accordion>
- <Accordion title="How does the Pro plan pricing work?" icon="credit-card">
- Pro plan costs $7 per seat per month. Each team member counts as a seat, and you're billed based on the number of members in your team. You also pay for parse tokens used when adding or refreshing private repositories.
- </Accordion>
+<Accordion title="How does the Pro plan pricing work?" icon="credit-card">
+ Pro plan costs $7 per seat per month. Each team member counts as a seat, and you're billed based
+ on the number of members in your team. You also pay for parse tokens used when adding or
+ refreshing private repositories.
+</Accordion>
- <Accordion title="How much does parsing private libraries cost?" icon="dollar-sign">
- In addition to $7 per seat per month, you are charged $15 per 1M tokens for parsing private repositories. This charge applies when you add a new private repository or refresh an existing one. The cached pages (while refreshing private repositories) are free.
- </Accordion>
+<Accordion title="How much does parsing private libraries cost?" icon="dollar-sign">
+ In addition to $7 per seat per month, you are charged $15 per 1M tokens for parsing private
+ repositories. This charge applies when you add a new private repository or refresh an existing
+ one. The cached pages (while refreshing private repositories) are free.
+</Accordion>
<Accordion title="Can I access private repositories on the Free plan?" icon="lock">
No, private repository access is only available on Pro and Enterprise plans. You'll need to upgrade to work with private repositories and collaborate with your team.
@@ -52,13 +56,15 @@ Pick the plan that matches how you work today and scale when your needs grow.
To downgrade, you must first remove all team projects and private repositories from your personal project. Once done, you can switch to the Free plan from the plans page.
</Accordion>
- <Accordion title="Can I cancel my Pro subscription at any time?" icon="xmark">
- Yes, you can downgrade to the Free plan at any time. You will be charged a pro-rated amount for the days of your current billing period.
- </Accordion>
+<Accordion title="Can I cancel my Pro subscription at any time?" icon="xmark">
+ Yes, you can downgrade to the Free plan at any time. You will be charged a pro-rated amount for
+ the days of your current billing period.
+</Accordion>
- <Accordion title="What's the difference between Pro and Enterprise?" icon="building">
- Enterprise plans include additional features like SOC-2 compliance, SSO (Single Sign-On), dedicated support, and custom rate limits. Contact us to discuss your specific enterprise needs.
- </Accordion>
+<Accordion title="What's the difference between Pro and Enterprise?" icon="building">
+ Enterprise plans include additional features like SOC-2 compliance, SSO (Single Sign-On),
+ dedicated support, and custom rate limits. Contact us to discuss your specific enterprise needs.
+</Accordion>
<Accordion title="How much does the Enterprise plan cost?" icon="envelope">
Enterprise pricing is customized based on your specific needs and usage requirements. Please contact us at [[email protected]](mailto:[email protected]) to discuss pricing and features.
@@ -72,13 +78,11 @@ Pick the plan that matches how you work today and scale when your needs grow.
No user queries are sent to our servers. Instead, only generic topics are transmitted. Your actual prompts and code remain private on your local machine.
</Accordion>
- <Accordion title="How do you ensure the code snippets are safe?" icon="check">
- We follow several processes to ensure safety:
- - Run an LLM-based model to detect injection attempts before storing code
- - Assign a trustScore to repository authors
- - Allow users to filter trusted libraries by organization and repository
- - Regular security audits and monitoring
- </Accordion>
+<Accordion title="How do you ensure the code snippets are safe?" icon="check">
+ We follow several processes to ensure safety: - Run an LLM-based model to detect injection
+ attempts before storing code - Assign a trustScore to repository authors - Allow users to filter
+ trusted libraries by organization and repository - Regular security audits and monitoring
+</Accordion>
<Accordion title="What are your security practices?" icon="lock">
We are part of Upstash Inc., a four-year-old Silicon Valley company. You can review our certifications and practices on our [Trust page](https://trust.upstash.com). We follow SOC-2 compliance standards and industry best practices.
@@ -89,6 +93,9 @@ Pick the plan that matches how you work today and scale when your needs grow.
<AccordionGroup>
<Accordion title="Is API usage unlimited?" icon="infinity">
- No, we have different rate limits for each plan. The Free plan has lower rate limits, while the Pro plan offers higher limits per team member. If you need custom rate limits for high-volume usage, please contact us at [[email protected]](mailto:[email protected]) to discuss Enterprise plan options.
+ No, we have different rate limits for each plan. The Free plan has lower rate limits, while the
+ Pro plan offers higher limits per team member. If you need custom rate limits for high-volume
+ usage, please contact us at [[email protected]](mailto:[email protected]) to discuss
+ Enterprise plan options.
</Accordion>
</AccordionGroup>
diff --git a/docs/security.mdx b/docs/security.mdx
index 9525a1b5..34f6d993 100644
--- a/docs/security.mdx
+++ b/docs/security.mdx
@@ -25,7 +25,8 @@ When you use Context7 through the MCP client:
4. The server has no access to your actual prompts or conversations
<Note>
-The MCP client processes your queries locally and only transmits topic information needed to retrieve relevant documentation. Your full prompts, code, and context remain private.
+ The MCP client processes your queries locally and only transmits topic information needed to
+ retrieve relevant documentation. Your full prompts, code, and context remain private.
</Note>
### Data Storage
@@ -37,11 +38,13 @@ The MCP client processes your queries locally and only transmits topic informati
- All indexed content is stored in a secure vector database optimized for retrieval
**What we store:**
+
- Public library documentation
- Public code examples from documentation
- Metadata about indexed libraries
**What we don't store:**
+
- Your source code
- Your queries or prompts
- Your private repositories (unless explicitly authorized)
@@ -95,11 +98,13 @@ Learn more about Upstash security: [upstash.com/trust](https://upstash.com/trust
**Single Sign-On (SSO) is available for Enterprise plans.**
Supported SSO providers:
+
- SAML 2.0
- OAuth 2.0
- OpenID Connect (OIDC)
Enterprise features include:
+
- Centralized user management
- Team access controls
- Audit logs for compliance
@@ -119,6 +124,7 @@ Contact our sales team at [context7.com](https://context7.com) for Enterprise pl
### GDPR Compliance
For European users, Context7 provides:
+
- Right to access your data
- Right to delete your data
- Data portability options
@@ -156,6 +162,7 @@ We take all security reports seriously and will respond promptly.
### Open Source
The Context7 MCP server is open source:
+
- Code is publicly available on GitHub
- Community can audit and contribute
- Transparent implementation and practices
@@ -165,6 +172,7 @@ Repository: [github.com/upstash/context7](https://github.com/upstash/context7)
### Compliance Certifications
Context7 benefits from Upstash's compliance certifications:
+
- SOC 2 Type II
- GDPR compliant
- ISO 27001 (in progress)
@@ -183,6 +191,7 @@ Context7 benefits from Upstash's compliance certifications:
### Private Repositories
For private repository access:
+
- Only grant minimum required permissions
- Use dedicated API keys for private repos
- Regularly audit access permissions
@@ -205,6 +214,7 @@ For private repository access:
## Questions and Support
For security-related questions:
+
- Review our documentation at [docs.context7.com](https://docs.context7.com)
- Contact us through [GitHub Issues](https://github.com/upstash/context7/issues)
- Join our [Discord Community](https://upstash.com/discord)
diff --git a/docs/troubleshooting.mdx b/docs/troubleshooting.mdx
index 9c2c8347..e9a0a2da 100644
--- a/docs/troubleshooting.mdx
+++ b/docs/troubleshooting.mdx
@@ -149,14 +149,7 @@ Alternatively, use this configuration with `cmd`:
"mcpServers": {
"context7": {
"command": "cmd",
- "args": [
- "/c",
- "npx",
- "-y",
- "@upstash/context7-mcp",
- "--api-key",
- "YOUR_API_KEY"
- ]
+ "args": ["/c", "npx", "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}
@@ -186,7 +179,8 @@ On macOS, some users may encounter the same request timeout errors. Use the full
```
<Note>
-Replace `yourname` and the Node.js version (`v22.14.0`) with your actual username and installed Node.js version.
+ Replace `yourname` and the Node.js version (`v22.14.0`) with your actual username and installed
+ Node.js version.
</Note>
## API and Connection Issues
@@ -219,6 +213,7 @@ If you see `401 Unauthorized` errors:
2. **Check the header format** - ensure the API key is properly set:
For HTTP transport:
+
```json
{
"headers": {
@@ -228,6 +223,7 @@ For HTTP transport:
```
For stdio transport:
+
```json
{
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
diff --git a/docs/usage.mdx b/docs/usage.mdx
index 797cbe2b..94be06df 100644
--- a/docs/usage.mdx
+++ b/docs/usage.mdx
@@ -27,6 +27,7 @@ Stop adding "use context7" to every prompt by setting up an automatic rule.
Always use context7 when I need code generation, setup steps, or library documentation.
Automatically use Context7 MCP tools without me having to ask.
```
+
</Accordion>
<Accordion title="Windsurf" icon="wind">
@@ -35,6 +36,7 @@ Stop adding "use context7" to every prompt by setting up an automatic rule.
```txt
Use context7 for all code generation and API documentation questions.
```
+
</Accordion>
<Accordion title="Claude Code" icon="code">
@@ -43,11 +45,13 @@ Stop adding "use context7" to every prompt by setting up an automatic rule.
```txt
Automatically use context7 for code generation and library documentation.
```
+
</Accordion>
</AccordionGroup>
<Tip>
-Customize the rule to match your workflow. For example, only auto-invoke for specific libraries or frameworks.
+ Customize the rule to match your workflow. For example, only auto-invoke for specific libraries or
+ frameworks.
</Tip>
## Use Specific Library IDs
@@ -74,9 +78,7 @@ Build a rate limiter. use library /upstash/ratelimit
Set up Next.js middleware. use library /vercel/next.js/v15.1.0
```
-<Note>
-You can even specify versions: `/owner/repo/v1.0.0`
-</Note>
+<Note>You can even specify versions: `/owner/repo/v1.0.0`</Note>
### Benefits
@@ -101,6 +103,7 @@ If you're behind a corporate proxy, configure Context7 to route through it.
```bash
export https_proxy=http://username:[email protected]:8080
```
+
</Accordion>
<Accordion title="Windows (Command Prompt)" icon="windows">
@@ -113,6 +116,7 @@ If you're behind a corporate proxy, configure Context7 to route through it.
```cmd
set https_proxy=http://username:[email protected]:8080
```
+
</Accordion>
<Accordion title="Windows (PowerShell)" icon="windows">
@@ -145,7 +149,8 @@ Add proxy directly to your MCP configuration:
Both lowercase and uppercase environment variables are supported.
<Tip>
-After updating proxy settings, run `curl https://mcp.context7.com/mcp/ping` to confirm outbound connectivity before restarting your IDE.
+ After updating proxy settings, run `curl https://mcp.context7.com/mcp/ping` to confirm outbound
+ connectivity before restarting your IDE.
</Tip>
## Optimize Token Usage
@@ -265,9 +270,7 @@ Authorization: Bearer YOUR_API_KEY
- When documentation is updated
- When you notice outdated information
-<Note>
-For private repos, you only pay for new/changed content during refresh.
-</Note>
+<Note>For private repos, you only pay for new/changed content during refresh.</Note>
## Monitor Usage
@@ -289,10 +292,12 @@ All stats show the last 30 days.
**Free Plan**: Always $0
**Pro Plan**:
+
- **Seats**: $7/month × team members
- **Parse tokens**: $15 per 1M tokens (private repos only)
**Example**:
+
- 4 team members: $28/month
- Added 800K token private repo: $12 one-time
- Monthly total: $40