Skip to content

Commit e262585

Browse files
committed
Add mcp/context7
Signed-off-by: David Gageot <[email protected]>
1 parent 9e37f15 commit e262585

File tree

3 files changed

+80
-0
lines changed

3 files changed

+80
-0
lines changed

prompts/catalog.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2237,6 +2237,17 @@ registry:
22372237
properties:
22382238
risken.url:
22392239
type: string
2240+
context7:
2241+
description: Context7 MCP Server -- Up-to-date documentation for LLMs and AI code editors
2242+
ref: github:docker/labs-ai-tools-for-devs?ref=main&path=prompts/mcp/context7.md
2243+
readme: github:docker/labs-ai-tools-for-devs?ref=main&path=prompts/mcp/readmes/context7.md
2244+
source: https://github.com/upstash/context7/tree/master
2245+
icon: https://avatars.githubusercontent.com/u/74989412?s=200&v=4
2246+
tools:
2247+
- name: get-library-docs
2248+
- name: resolve-library-id
2249+
prompts: 0
2250+
resources: {}
22402251
azure:
22412252
description: This repository is for development of the Azure MCP Server, bringing the power of Azure to your agents.
22422253
ref: github:docker/labs-ai-tools-for-devs?ref=main&path=prompts/mcp/azure.md

prompts/mcp/context7.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
mcp:
3+
- container:
4+
image: mcp/context7:latest
5+
workdir: /app
6+
source:
7+
url: https://github.com/upstash/context7/tree/master
8+
---

prompts/mcp/readmes/context7.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Context7 MCP Server
2+
3+
Context7 MCP Server -- Up-to-date documentation for LLMs and AI code editors
4+
5+
[What is an MCP Server?](https://www.anthropic.com/news/model-context-protocol)
6+
7+
## Characteristics
8+
Attribute|Details|
9+
|-|-|
10+
**Image Source**|Official Image
11+
|**Author**|[upstash](https://github.com/upstash)
12+
**Repository**|https://github.com/upstash/context7
13+
**Dockerfile**|https://github.com/upstash/context7/blob/master/Dockerfile
14+
**Docker Image built by**|Docker Inc.
15+
**Docker Scout Health Score**| ![Docker Scout Health Score](https://api.scout.docker.com/v1/policy/insights/org-image-score/badge/mcp/context7)
16+
**Licence**|MIT License
17+
18+
## Available Tools
19+
Tools provided by this Server|Short Description
20+
-|-
21+
`get-library-docs`|Fetches up-to-date documentation for a library.|
22+
`resolve-library-id`|Required first step: Resolves a general package name into a Context7-compatible library ID.|
23+
24+
---
25+
## Tools Details
26+
27+
#### Tool: **`get-library-docs`**
28+
Fetches up-to-date documentation for a library. You must call 'resolve-library-id' first to obtain the exact Context7-compatible library ID required to use this tool.
29+
Parameters|Type|Description
30+
-|-|-
31+
`context7CompatibleLibraryID`|`string`|Exact Context7-compatible library ID (e.g., 'mongodb/docs', 'vercel/nextjs') retrieved from 'resolve-library-id'.
32+
`tokens`|`number` *optional*|Maximum number of tokens of documentation to retrieve (default: 5000). Higher values provide more context but consume more tokens.
33+
`topic`|`string` *optional*|Topic to focus documentation on (e.g., 'hooks', 'routing').
34+
35+
---
36+
#### Tool: **`resolve-library-id`**
37+
Required first step: Resolves a general package name into a Context7-compatible library ID. Must be called before using 'get-library-docs' to retrieve a valid Context7-compatible library ID.
38+
Parameters|Type|Description
39+
-|-|-
40+
`libraryName`|`string`|Library name to search for and retrieve a Context7-compatible library ID.
41+
42+
---
43+
## Use this MCP Server
44+
45+
```json
46+
{
47+
"mcpServers": {
48+
"context7": {
49+
"command": "docker",
50+
"args": [
51+
"run",
52+
"-i",
53+
"--rm",
54+
"mcp/context7"
55+
]
56+
}
57+
}
58+
}
59+
```
60+
61+
[Why is it safer to run MCP Servers with Docker?](https://www.docker.com/blog/the-model-context-protocol-simplifying-building-ai-apps-with-anthropic-claude-desktop-and-docker/)

0 commit comments

Comments
 (0)