Skip to content

Commit 5bc4aa9

Browse files
its-mashMohammod Al Amin Ashik
andauthored
feat: add Context7 MCP server definitions (#87)
- com.context7-mcp-npx.json (npx, @upstash/context7-mcp) - com.context7-mcp-docker.json (Docker, mcp/context7) - com.context7-mcp-http.json (HTTP at mcp.context7.com/mcp) Fetches up-to-date library docs and code examples into LLM prompts. Optional API key for higher rate limits; free tier works without auth. Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com> Co-authored-by: Mohammod Al Amin Ashik <mohammod@mcpmux.com>
1 parent b635c2e commit 5bc4aa9

3 files changed

Lines changed: 233 additions & 0 deletions

File tree

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"$schema": "../schemas/server-definition.schema.json",
3+
"id": "com.context7-mcp-docker",
4+
"name": "Context7 (Docker)",
5+
"alias": "context7-docker",
6+
"description": "Fetch up-to-date, version-specific documentation and code examples for any library directly into LLM prompts via Docker. Prevents hallucinated APIs by pulling current docs from the source.",
7+
"icon": "https://avatars.githubusercontent.com/u/1529926?v=4",
8+
"schema_version": "2.1",
9+
"categories": [
10+
"developer-tools",
11+
"documentation"
12+
],
13+
"tags": [
14+
"context7",
15+
"documentation",
16+
"code-examples",
17+
"docker",
18+
"upstash"
19+
],
20+
21+
"transport": {
22+
"type": "stdio",
23+
"command": "docker",
24+
"args": [
25+
"run", "-i", "--rm",
26+
"-e", "CONTEXT7_API_KEY",
27+
"mcp/context7"
28+
],
29+
"env": {
30+
"CONTEXT7_API_KEY": "${input:CONTEXT7_API_KEY}"
31+
},
32+
"metadata": {
33+
"inputs": [
34+
{
35+
"id": "CONTEXT7_API_KEY",
36+
"label": "Context7 API Key",
37+
"description": "API key for higher rate limits. Free tier works without a key. Get one at context7.com/dashboard.",
38+
"type": "text",
39+
"required": false,
40+
"secret": true,
41+
"placeholder": "ctx7_xxxxxxxxxxxxxxxxxxxx",
42+
"obtain": {
43+
"url": "https://context7.com/dashboard",
44+
"instructions": "1. Go to context7.com/dashboard\n2. Sign up or log in\n3. Generate an API key\n4. Copy the key",
45+
"button_label": "Get API Key"
46+
}
47+
}
48+
]
49+
}
50+
},
51+
52+
"auth": {
53+
"type": "optional_api_key",
54+
"instructions": "Works without a key (free tier with rate limits). Get an API key at context7.com/dashboard for higher limits."
55+
},
56+
57+
"contributor": {
58+
"name": "Upstash",
59+
"github": "upstash",
60+
"url": "https://context7.com"
61+
},
62+
63+
"links": {
64+
"repository": "https://github.com/upstash/context7",
65+
"homepage": "https://context7.com",
66+
"documentation": "https://context7.com/docs/resources/developer"
67+
},
68+
69+
"platforms": [
70+
"all"
71+
],
72+
73+
"capabilities": {
74+
"tools": true,
75+
"resources": false,
76+
"prompts": false,
77+
"read_only_mode": false
78+
}
79+
}

servers/com.context7-mcp-http.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"$schema": "../schemas/server-definition.schema.json",
3+
"id": "com.context7-mcp-http",
4+
"name": "Context7 (HTTP)",
5+
"alias": "context7-http",
6+
"description": "Fetch up-to-date, version-specific documentation and code examples for any library via Context7's hosted MCP endpoint. No local install needed.",
7+
"icon": "https://avatars.githubusercontent.com/u/1529926?v=4",
8+
"schema_version": "2.1",
9+
"categories": [
10+
"developer-tools",
11+
"documentation"
12+
],
13+
"tags": [
14+
"context7",
15+
"documentation",
16+
"code-examples",
17+
"upstash"
18+
],
19+
20+
"transport": {
21+
"type": "http",
22+
"url": "https://mcp.context7.com/mcp",
23+
"headers": {
24+
"CONTEXT7_API_KEY": "${input:CONTEXT7_API_KEY}"
25+
},
26+
"metadata": {
27+
"inputs": [
28+
{
29+
"id": "CONTEXT7_API_KEY",
30+
"label": "Context7 API Key",
31+
"description": "API key for higher rate limits. Free tier works without a key. Get one at context7.com/dashboard.",
32+
"type": "text",
33+
"required": false,
34+
"secret": true,
35+
"placeholder": "ctx7_xxxxxxxxxxxxxxxxxxxx",
36+
"obtain": {
37+
"url": "https://context7.com/dashboard",
38+
"instructions": "1. Go to context7.com/dashboard\n2. Sign up or log in\n3. Generate an API key\n4. Copy the key",
39+
"button_label": "Get API Key"
40+
}
41+
}
42+
]
43+
}
44+
},
45+
46+
"auth": {
47+
"type": "optional_api_key",
48+
"instructions": "Works without a key (free tier with rate limits). Get an API key at context7.com/dashboard for higher limits."
49+
},
50+
51+
"contributor": {
52+
"name": "Upstash",
53+
"github": "upstash",
54+
"url": "https://context7.com"
55+
},
56+
57+
"links": {
58+
"repository": "https://github.com/upstash/context7",
59+
"homepage": "https://context7.com",
60+
"documentation": "https://context7.com/docs/resources/developer"
61+
},
62+
63+
"platforms": [
64+
"all"
65+
],
66+
67+
"capabilities": {
68+
"tools": true,
69+
"resources": false,
70+
"prompts": false,
71+
"read_only_mode": false
72+
}
73+
}

servers/com.context7-mcp-npx.json

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"$schema": "../schemas/server-definition.schema.json",
3+
"id": "com.context7-mcp-npx",
4+
"name": "Context7 (npx)",
5+
"alias": "context7",
6+
"description": "Fetch up-to-date, version-specific documentation and code examples for any library directly into LLM prompts. Prevents hallucinated APIs by pulling current docs from the source.",
7+
"icon": "https://avatars.githubusercontent.com/u/1529926?v=4",
8+
"schema_version": "2.1",
9+
"categories": [
10+
"developer-tools",
11+
"documentation"
12+
],
13+
"tags": [
14+
"context7",
15+
"documentation",
16+
"code-examples",
17+
"libraries",
18+
"api-reference",
19+
"upstash"
20+
],
21+
22+
"transport": {
23+
"type": "stdio",
24+
"command": "npx",
25+
"args": [
26+
"-y",
27+
"@upstash/context7-mcp"
28+
],
29+
"env": {
30+
"CONTEXT7_API_KEY": "${input:CONTEXT7_API_KEY}"
31+
},
32+
"metadata": {
33+
"inputs": [
34+
{
35+
"id": "CONTEXT7_API_KEY",
36+
"label": "Context7 API Key",
37+
"description": "API key for higher rate limits. Free tier works without a key. Get one at context7.com/dashboard.",
38+
"type": "text",
39+
"required": false,
40+
"secret": true,
41+
"placeholder": "ctx7_xxxxxxxxxxxxxxxxxxxx",
42+
"obtain": {
43+
"url": "https://context7.com/dashboard",
44+
"instructions": "1. Go to context7.com/dashboard\n2. Sign up or log in\n3. Generate an API key\n4. Copy the key",
45+
"button_label": "Get API Key"
46+
}
47+
}
48+
]
49+
}
50+
},
51+
52+
"auth": {
53+
"type": "optional_api_key",
54+
"instructions": "Works without a key (free tier with rate limits). Get an API key at context7.com/dashboard for higher limits."
55+
},
56+
57+
"contributor": {
58+
"name": "Upstash",
59+
"github": "upstash",
60+
"url": "https://context7.com"
61+
},
62+
63+
"links": {
64+
"repository": "https://github.com/upstash/context7",
65+
"homepage": "https://context7.com",
66+
"documentation": "https://context7.com/docs/resources/developer"
67+
},
68+
69+
"platforms": [
70+
"all"
71+
],
72+
73+
"capabilities": {
74+
"tools": true,
75+
"resources": false,
76+
"prompts": false,
77+
"read_only_mode": false
78+
},
79+
80+
"changelog_url": "https://github.com/upstash/context7/releases"
81+
}

0 commit comments

Comments
 (0)