Mock MCP Documentation Server
This repository contains a minimal Model Context Protocol (MCP) server that
exposes a single tool: get_documentation_from_database.
Files added:
mock_doc_server.py— FastMCP server exposingget_documentation_from_databasewhich returns mocked documentation records.requirements.txt— minimal Python dependency pin for the MCP SDK.
Quick start
Create a virtual environment and install dependencies:
Run the server (stdio transport):
The server listens on STDIO and is intended to be connected to by an MCP client (for example, an MCP client implementation or an MCP-capable host like Claude).
If you want a streamable HTTP/SSE server or to mount this server in an ASGI app, see the examples in the MCP Python SDK docs.
Basic project
Provide a short description here.
Setup
Create a virtual environment
Install dependencies
Run your app/tests
Notes
Update equirements.txt as you add packages.
GNews MCP Server
This workspace includes gnews_mcp.py — a FastMCP server that wraps the GNews
API Search and Top Headlines endpoints. Quick usage:
Install dependencies:
Set your GNews API key in the environment:
Run the server (streamable HTTP transport):
The server exposes two tools:
search(query, max=10, lang=None, country=None)— GNews Searchtop_headlines(topic=None, max=10, lang=None, country=None)— Top Headlines
See gnews_mcp.py for structured response models and usage notes.