A simple way to make your documentation files available to AI assistants like Claude.
Think of this as a library catalog for your documentation. You have a bunch of markdown files (.md files) with documentation, guides, or notes. This server:
- Finds all your markdown files automatically
- Makes them available to AI tools through something called MCP (Model Context Protocol)
- Lets AI assistants search through and read your documentation
It's like giving Claude or other AI tools a filing cabinet of your documentation that they can open and read whenever they need information.
- You put documentation files in folders - Just save your
.mdfiles in organized folders - The server finds them automatically - No need to manually register each file
- AI can read them - AI assistants can now access and search your documentation
Let's say you have documentation for "Service 1" with these files:
user-functions.md- How user features workcall-functions.md- How calling features workcalendar-functions.md- How calendar features work
You would organize them like this:
docs/
└── service-1/
├── user-functions.md
├── call-functions.md
└── calendar-functions.md
That's it! The server will automatically find these files and make them available as:
docs://service-1/user-functionsdocs://service-1/call-functionsdocs://service-1/calendar-functions
You need Python 3.10 or newer and uv (a Python package manager) installed.
Install uv if you don't have it:
curl -LsSf https://astral.sh/uv/install.sh | shThen install the required package:
uv pip install mcpPut your markdown files in the docs/ folder. Organize them in subfolders by topic or service:
docs/
├── service-1/
│ ├── user-functions.md
│ ├── call-functions.md
│ └── calendar-functions.md
├── service-2/
│ └── api-guide.md
└── getting-started/
└── introduction.md
The subfolder name (like service-1) becomes the category.
The easiest way is to use the Claude Code CLI. From this project folder, run:
claude mcp add --transport stdio docs -- uv run python /full/path/to/mcp-example/src/mcp_docs_server.pyReplace /full/path/to/mcp-example with your actual project path.
Verify it's connected:
claude mcp listYou should see: docs: ... - ✓ Connected
That's it! Claude Code can now access your documentation.
To add new documentation at any time:
- Create a new
.mdfile in the appropriate folder underdocs/ - That's it! The server finds new files automatically
For example, to add documentation for a new service:
docs/
└── service-3/ # Create new folder
└── setup.md # Add your documentation file
No need to restart the server or change any code.
If you're using Claude Code (the CLI tool), follow Step 3 above. The server is already configured and running!
You can now ask Claude Code questions like:
- "List all available docs resources"
- "Read the service-1/user-functions documentation"
- "Search the docs for authentication"
Claude Code will automatically access your documentation files.
Check if the server is connected:
claude mcp listRemove the server:
claude mcp remove docsRe-add the server if needed:
claude mcp add --transport stdio docs -- uv run python /full/path/to/mcp-example/src/mcp_docs_server.pyTo make your documentation available in Claude Desktop:
-
Find your Claude Desktop config file:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json
- Mac:
-
Open the file and add this (replace
/path/to/mcp-examplewith your actual folder path):
{
"mcpServers": {
"docs": {
"command": "python",
"args": ["/path/to/mcp-example/src/mcp_docs_server.py"]
}
}
}- MCP Python SDK - Build your own MCP servers
- MCP Documentation - Learn about Model Context Protocol
- MCP Python SDK Docs - Complete SDK reference