Skip to main content
Glama
anupmurali05

Mock Documentation MCP Server

by anupmurali05

MCP Server

This repository contains a FastMCP server that exposes a mocked documentation database tool.

Tool

  • get_documentation_from_database(document_id: str | None = None, query: str | None = None) -> dict

This tool returns mocked documentation records from a simulated database. You can request a specific document by document_id or search the mocked documentation with query.

Related MCP server: Reflex Docs MCP Server

Run the server

Install dependencies in the project virtual environment:

cd /Users/anupmurali/projects/MCP
.venv/bin/python -m pip install -e ./mcp-server

Run the server:

cd /Users/anupmurali/projects/MCP/mcp-server
.venv/bin/python main.py

The MCP endpoint will be available at http://127.0.0.1:8000/mcp.

Test the tool locally

You can call the tool directly from Python for a quick smoke test:

cd /Users/anupmurali/projects/MCP/mcp-server
.venv/bin/python -c "from main import get_documentation_from_database; print(get_documentation_from_database(query='MCP'))"

Notes

  • The server uses fastmcp with mcp under the hood.

  • The mocked database includes a few sample documentation records.

Related MCP Connectors

Related MCP Servers