返回 MCP 目录
public公开dns本地运行

Claude文档服务器

一个智能文档服务器,通过 Claude Desktop 集成提供人工智能辅助的代码改进和文档管理。

article

README

MCP Documentation Server

A smart documentation server that provides AI-assisted code improvement and documentation management through Claude Desktop integration.

Features

  • AI Documentation Guide: Maintains and updates documentation knowledge base
  • AI Code Assistant: Analyzes and improves code quality
  • Framework Support:
    • React.js
    • Next.js (with App Router)
    • Python
    • Vue.js
    • Angular
    • Node.js
  • Brave Search Integration: Smart documentation search and retrieval
  • Learning System: Improves suggestions over time

Quick Start

  1. Install the package:
npm install -g mcp-documentation-server
  1. Configure Claude Desktop (config.json):
{
  "mcpServers": {
    "documentation": {
      "command": "npx",
      "args": ["-y", "mcp-documentation-server"],
      "env": {
        "BRAVE_API_KEY": "<YOUR_BRAVE_API_KEY>"
      }
    }
  }
}
  1. Start using with Claude:
Claude, search documentation for Next.js App Router

For detailed setup instructions, see Claude Desktop Setup Guide

Development Setup

  1. Clone the repository:
git clone https://github.com/mahawi1992/mcp-documentation-server.git
cd mcp-documentation-server
  1. Install dependencies:
npm install
  1. Create a .env file:
PORT=3000
UPDATE_INTERVAL=3600000
CACHE_DURATION=86400000
BRAVE_API_KEY=your_brave_api_key
  1. Start the development server:
npm run dev

Documentation

Using with Claude Desktop

Basic Commands

Claude, search documentation for React hooks
Claude, analyze this Python code and suggest improvements...
Claude, find best practices for Next.js App Router

Advanced Usage

Claude, search for documentation about async/await in Python 3.9
Claude, analyze this code for security issues and suggest fixes...

For more examples, see the Usage Guide

Contributing

  1. Fork the repository
  2. Create your feature branch:
    git checkout -b feature/amazing-feature
    
  3. Commit your changes:
    git commit -m 'Add amazing feature'
    
  4. Push to the branch:
    git push origin feature/amazing-feature
    
  5. Open a Pull Request

Testing

Run the test suite:

npm test

Run specific tests:

npm test -- tests/integration/BraveSearchIntegration.test.ts

License

This project is licensed under the MIT License - see the LICENSE file for details

help

运行方式说明

cloud

托管运行

托管运行通常表示这个 MCP Server 由服务方环境承载,用户一般按页面提供的连接方式或授权流程接入,不需要在本地长期启动一个 MCP 进程

  1. 打开服务方连接页
  2. 完成授权或复制端点
  3. 在 MCP 客户端中连接
terminal

本地运行 / 其它方式

本地运行通常需要用户在自己的电脑或服务器上安装依赖,把 server_config 复制到 MCP 客户端,并按 env_schema 补齐环境变量、密钥或其它配置

  1. 复制 server_config
  2. 安装所需依赖
  3. 补齐环境变量后重启客户端