MCP Documentation Server

by droidnext

291 downloads
Not rated
GitHub

About

The MCP Documentation Server serves documentation for various applications using the Model Context Protocol (MCP). It organizes and exposes documentation content—including quickstart guides and code examples—via MCP tools, and is designed for developers who want to integrate…

Details

Author
droidnext
Downloads
291
Categories
Knowledge Base

- Serves application documentation via MCP tools
- Organizes content in a content/ directory per application
- Provides quickstart and code_examples MCP tools
- Built with FastAPI and the fastmcp library
- Supports integration with Claude Desktop
- Allows inspection via the MCP Inspector tool

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Documentation Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Initialize the environment with uv init, uv venv, then install dependencies (fastapi, uvicorn, openai, fastmcp) and run uvicorn app.main:app. Start the server with ./scripts/start.sh. Connect Claude Desktop by adding a new MCP server configuration with the command npx mcp-remote pointing to http://localhost:8000/mcp-app-docs-server/mcp. Alternatively, inspect the server using npx @modelcontextprotocol/inspector.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp documentation server": {
            "mcp_dev_docs_server": {
                "command": "uv",
                "args": [
                    "init"
                ]
            }
        }
    }
}

McpServers

{
    "mcp_dev_docs_server": {
        "command": "uv",
        "args": [
            "init"
        ]
    }
}

MCP Documentation Server

This project serves documentation for various applications using the Model Context Protocol (MCP). It demonstrates how to organize and expose documentation content, including quickstart guides and code examples, via MCP tools.

📚 Documentation Structure

Application documentation is organized under the content/ directory. For the XYZ application, content is located in content/xyz/ and includes:

- quickstart.md: A quickstart guide for integrating with the XYZ application.
- code_examples.md: Various code examples demonstrating how to use the XYZ application with MCP tools.

🛠️ MCP Tools

MCP tools are defined in app/mcp/mcp_routes.py to expose the documentation content:

- quickstart: Provides the quickstart guide for a specified application.
- code_examples: Provides code examples for a specified application.

⚙️ Setup Instructions

1. Initialize the environment

    uv init
uv venv
source .venv/bin/activate
uv pip install fastapi uvicorn openai fastmcp
uvicorn app.main:app

2. Start the application server

Run the provided start script:

    chmod +x scripts/start.sh
    ./scripts/start.sh
    

Connect to MCP Server using Claude Desktop

To connect Claude Desktop to this MCP documentation server, you need to add a new server configuration in Claude's settings.

1. Open Claude Desktop settings.
2. Navigate to the 'Developer' section.
3. Under 'MCP Server Configs', add the following JSON configuration:

{
  "AppDocsServer": {
    "command": "npx",
    "args": [
      "mcp-remote",
      "http://localhost:8000/mcp-app-docs-server/mcp"
    ]
  }
}

4. Save the settings. Claude Desktop should now be able to discover and use the tools provided by this server.

Running the MCP Inspector

To test and inspect the MCP tools exposed by this server, you can use the MCP inspector tool. Run the following command in your terminal:

npx @modelcontextprotocol/inspector node build/index.js

This will start the inspector, allowing you to interact with the quickstart and code_examples tools provided by this server.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.