Skip to content

Conversation

arif-dewi
Copy link

@arif-dewi arif-dewi commented Oct 1, 2025

Summary

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.

Why this alternative

The original Context7 MCP server uses SSE (Server-Sent Events) transport, which experienced connectivity issues when used with Docker MCP Toolkit and Claude Code. This STDIO-based implementation:

  • ✅ More reliable, synchronous communication via STDIO transport
  • ✅ Better compatibility with Claude Code's MCP client implementation
  • ✅ Simpler configuration without complex networking requirements
  • ✅ No connection timeout or SSE streaming issues

Features

  • 📚 Documentation access for 600+ popular libraries and frameworks (React, Next.js, TypeScript, etc.)
  • 🔍 Resolve library names to Context7-compatible IDs
  • 🎯 Fetch focused documentation with optional topic filtering
  • ⚙️ Token-based API access with customizable limits

Tools

  1. resolve-library-id: Find exact library identifiers

    • Input: General library name (e.g., "react", "next.js")
    • Output: Context7-compatible library ID
  2. get-library-docs: Fetch comprehensive documentation

    • Input: Library ID, optional topic filter, optional token limit
    • Output: Focused, relevant documentation

Testing

Configuration

Optional: Set CONTEXT7_API_KEY environment variable for higher rate limits (get from https://context7.com)

The server works without an API key using public access with lower rate limits. An API key is recommended for production use.

Links

Checklist

  • Functional Dockerfile ✅
  • Proper server.yaml configuration ✅
  • tools.json with tool descriptions ✅
  • Docker image published and tested ✅
  • Multi-architecture support ✅
  • MIT License ✅
  • Documentation and README ✅

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
@arif-dewi arif-dewi requested a review from a team as a code owner October 1, 2025 15:03
The API key is optional - server works without it using public access with lower rate limits. Updated description to clarify this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant