mcp-docs-helper
Enables LLMs to access MCP protocol specifications and TypeScript SDK documentation with context-aware search and code templates for building custom MCP servers.
README
MCP Documentation Helper
An AI-powered developer tool that provides LLMs with instant access to MCP protocol specifications and TypeScript SDK documentation.
Overview
MCP Documentation Helper is a Model Context Protocol (MCP) server that exposes comprehensive MCP documentation as structured resources. It enables AI assistants like Claude to provide accurate, context-aware guidance when building custom MCP servers.
Features
- 📚 Complete Documentation Access - Full MCP protocol specification and TypeScript SDK docs
- 🔍 Context-Aware Search - Intelligent search with relevance scoring and focused results
- 📋 Code Templates - Ready-to-use implementation patterns for common MCP use cases
- 🎯 Categorized Resources - Quick access to tools, resources, prompts, transports, and examples
- 🤖 AI-Optimized - Designed specifically for LLM-assisted development workflows
Prerequisites
- Node.js 18+ or Bun
- An MCP client (Claude Desktop, Cursor, or any MCP-compatible client)
Installation
1. Clone the Repository
git clone https://github.com/yourusername/mcp-documentation-helper.git
cd mcp-documentation-helper
2. Install Dependencies
Using npm:
npm install
Using Bun:
bun install
That's it! The repository includes all necessary MCP documentation files in the data directory.
Usage
Running Locally
Using npm:
npm run dev
Using Bun:
bun run dev
Using Node directly (after building):
npm run build
npm run start
Connecting to Claude Desktop
-
Open your Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
-
Add the MCP server configuration:
For npm/Node:
{
"mcpServers": {
"mcp-docs": {
"command": "node",
"args": [
"/absolute/path/to/mcp-documentation-helper/build/index.js"
]
}
}
}
For Bun:
{
"mcpServers": {
"mcp-docs": {
"command": "bun",
"args": [
"index.ts"
],
"cwd": "/absolute/path/to/mcp-documentation-helper"
}
}
}
- Replace
/absolute/path/to/mcp-documentation-helperwith your actual project path - Restart Claude Desktop
Connecting to Cursor
- Open Cursor Settings → MCP Servers
- Click "Add MCP Server"
- Configure the server:
For npm/Node:
{
"name": "mcp-docs",
"command": "node",
"args": [
"/absolute/path/to/mcp-documentation-helper/build/index.js"
]
}
For Bun:
{
"name": "mcp-docs",
"command": "bun",
"args": [
"index.ts"
],
"cwd": "/absolute/path/to/mcp-documentation-helper"
}
- Save and restart Cursor
Using with VS Code (via MCP extension)
- Install the MCP extension for VS Code
- Add to your workspace settings (
.vscode/settings.json):
{
"mcp.servers": {
"mcp-docs": {
"command": "node",
"args": [
"/absolute/path/to/mcp-documentation-helper/build/index.js"
]
}
}
}
Available Resources
Once connected, the following resources are available:
| Resource URI | Description |
|---|---|
mcp://docs/complete |
Full MCP protocol and SDK documentation |
mcp://docs/quick-start |
Getting started guide |
mcp://docs/tools |
Tool implementation reference |
mcp://docs/resources |
Resource implementation reference |
mcp://docs/prompts |
Prompt implementation reference |
mcp://docs/transport |
Transport setup (stdio, HTTP, SSE) |
mcp://docs/examples |
Working code examples |
Available Tools
search-mcp-docs
Search across all MCP documentation with context-aware results.
Parameters:
query(string): What you want to learn or implementfocus(optional):all,implementation,concepts,examples, ortroubleshooting
get-implementation-template
Get code templates for common MCP patterns.
Available Templates:
basic-server- Basic MCP server structuretool-with-validation- Tool with Zod validationresource-static- Static resourceresource-dynamic- Dynamic resource with parametersprompt-simple- Simple prompt templatestdio-server- stdio transport setuphttp-server- HTTP transport setuperror-handling- Error handling patterns
Available Prompts
build-server
Start building a new MCP server with guided assistance.
debug-server
Get help debugging an MCP server issue.
Example Usage
Once connected to Claude Desktop or Cursor, you can:
You: "I want to build an MCP server that connects to a PostgreSQL database"
Claude: *Uses mcp-docs resources to provide accurate implementation guidance*
You: "How do I implement a dynamic resource with parameters?"
Claude: *Searches documentation and provides relevant examples*
You: "Show me how to set up an HTTP transport"
Claude: *Retrieves transport documentation and code templates*
Development
Project Structure
mcp-documentation-helper/
├── data/ # Documentation files
│ ├── llms-full.txt # MCP protocol documentation
│ └── typescript-sdk-readme.md # TypeScript SDK docs
├── index.ts # Main server implementation
├── package.json # Dependencies and scripts
└── tsconfig.json # TypeScript configuration
Scripts
npm run dev- Run in development mode with tsxnpm run build- Build TypeScript to JavaScriptnpm run start- Run the built serverbun run dev- Run with Bun (if using Bun)
How It Works
- Documentation Parsing: The server parses MCP protocol and SDK documentation into structured sections
- Resource Exposure: Documentation is exposed through MCP resources with semantic URIs
- Intelligent Search: Built-in search tool provides context-aware results with relevance scoring
- Code Templates: Pre-built templates help jumpstart common implementation patterns
- AI Integration: LLMs can access documentation through standard MCP protocols
Troubleshooting
Server Not Showing Up in Claude Desktop
- Check that the path in the config is absolute, not relative
- Verify the
datadirectory contains both required files - Restart Claude Desktop completely
- Check Claude Desktop logs for errors
Documentation Files Not Found
The repository includes all necessary documentation files. If you encounter this error:
- Ensure you cloned the full repository with all files
- Check that the
datadirectory exists with both files:
ls data/
# Should show:
# llms-full.txt
# typescript-sdk-readme.md
Build Errors (Node/npm)
Make sure you've run the build command before starting:
npm run build
npm run start
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Acknowledgments
- Built with the Model Context Protocol SDK
- Documentation sourced from modelcontextprotocol.io
- Inspired by the Building MCP with LLMs guide
Links
Made with ❤️ for the MCP community
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。