From 3440c4ec61f773cc58ec2cb5e9a3bb0b6b86c63f Mon Sep 17 00:00:00 2001 From: Arif Dewi Date: Wed, 1 Oct 2025 17:02:33 +0200 Subject: [PATCH 1/2] Add STDIO Context7 MCP Server Adds Context7 MCP server specifically designed for Docker MCP Toolkit compatibility with Claude Code. This STDIO-based implementation provides stable, reliable access to Context7 library documentation where SSE-based alternatives experienced connection issues. Why this alternative: - Original Context7 SSE transport had connectivity issues with Docker MCP Toolkit - STDIO transport provides more reliable, synchronous communication - Better compatibility with Claude Code's MCP client implementation - Simpler configuration without complex networking requirements Features: - Documentation access for 600+ popular libraries and frameworks - Resolve library names to Context7-compatible IDs - Fetch focused documentation with optional topic filtering - Token-based API access with customizable limits Tools: - resolve-library-id: Find exact library identifiers - get-library-docs: Fetch comprehensive documentation Docker Image: dolasoft/stdio-context7-mcp GitHub: https://github.com/dolasoft/stdio_context7_mcp Category: documentation Tags: documentation, context7, api, library-docs --- servers/stdio-context7-mcp/server.yaml | 30 +++++++++++++++++++++++ servers/stdio-context7-mcp/tools.json | 34 ++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 servers/stdio-context7-mcp/server.yaml create mode 100644 servers/stdio-context7-mcp/tools.json diff --git a/servers/stdio-context7-mcp/server.yaml b/servers/stdio-context7-mcp/server.yaml new file mode 100644 index 00000000..b9b88b9f --- /dev/null +++ b/servers/stdio-context7-mcp/server.yaml @@ -0,0 +1,30 @@ +name: stdio-context7-mcp +image: dolasoft/stdio-context7-mcp +type: server +meta: + category: documentation + tags: + - documentation + - context7 + - api + - library-docs + about: + title: STDIO Context7 MCP Server + description: Access comprehensive library documentation through Context7 API. Get focused, up-to-date documentation for popular frameworks and libraries directly in your MCP client. Ideal for developers who need quick access to React, Next.js, TypeScript, and hundreds of other library docs. + icon: https://avatars.githubusercontent.com/u/198320816?s=200&v=4 + source: + project: https://github.com/dolasoft/stdio_context7_mcp +config: + description: Configure Context7 API access for library documentation + secrets: + - name: stdio-context7-mcp.context7_api_key + env: CONTEXT7_API_KEY + example: your_context7_api_key_here + parameters: + type: object + properties: + context7_api_key: + type: string + description: API key for Context7 service (get from https://context7.com) + required: + - context7_api_key diff --git a/servers/stdio-context7-mcp/tools.json b/servers/stdio-context7-mcp/tools.json new file mode 100644 index 00000000..0ee7dda0 --- /dev/null +++ b/servers/stdio-context7-mcp/tools.json @@ -0,0 +1,34 @@ +[ + { + "name": "resolve-library-id", + "description": "Resolves a general library name into a Context7-compatible library ID. Use this first to find the exact library identifier before fetching documentation.", + "arguments": [ + { + "name": "libraryName", + "type": "string", + "desc": "The name of the library to search for (e.g., 'react', 'next.js', 'typescript')" + } + ] + }, + { + "name": "get-library-docs", + "description": "Fetches comprehensive documentation for a library using its Context7-compatible library ID. Returns focused, relevant documentation based on optional topic filtering.", + "arguments": [ + { + "name": "context7CompatibleLibraryID", + "type": "string", + "desc": "Exact Context7-compatible library ID (e.g., '/mongodb/docs', '/vercel/next.js')" + }, + { + "name": "topic", + "type": "string", + "desc": "Optional: Focus the docs on a specific topic (e.g., 'routing', 'hooks', 'authentication')" + }, + { + "name": "tokens", + "type": "number", + "desc": "Optional: Max number of tokens to return (default: 5000, min: 1000)" + } + ] + } +] From c20d0db848d4c4d0cebe0acd2e1e0a0eb3e8da32 Mon Sep 17 00:00:00 2001 From: Arif Dewi Date: Wed, 1 Oct 2025 17:06:25 +0200 Subject: [PATCH 2/2] Update: Make CONTEXT7_API_KEY optional The API key is optional - server works without it using public access with lower rate limits. Updated description to clarify this. --- servers/stdio-context7-mcp/server.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/servers/stdio-context7-mcp/server.yaml b/servers/stdio-context7-mcp/server.yaml index b9b88b9f..759360ef 100644 --- a/servers/stdio-context7-mcp/server.yaml +++ b/servers/stdio-context7-mcp/server.yaml @@ -15,7 +15,7 @@ meta: source: project: https://github.com/dolasoft/stdio_context7_mcp config: - description: Configure Context7 API access for library documentation + description: Configure Context7 API access for library documentation (API key is optional but recommended for higher rate limits) secrets: - name: stdio-context7-mcp.context7_api_key env: CONTEXT7_API_KEY @@ -25,6 +25,4 @@ config: properties: context7_api_key: type: string - description: API key for Context7 service (get from https://context7.com) - required: - - context7_api_key + description: Optional API key for Context7 service (get from https://context7.com). If not provided, uses public access with lower rate limits.