fastmcp-templates
Templates and best practices for building Model Context Protocol (MCP) client and server applications with FastMCP.
A reference kit for building robust, modular Model Context Protocol (MCP) clients and servers using FastMCP. This repository is organized so teams can quickly bootstrap a client, a server, or explore the accompanying design documents and tests. 2. Create and activate a virtual environment:
Summary extracted from the README.
fastmcp-templates
A reference kit for building robust, modular Model Context Protocol (MCP) clients and servers with FastMCP.
fastmcp-templates
A reference kit for building robust, modular Model Context Protocol (MCP) clients and servers using FastMCP.
This repository is organized so teams can quickly bootstrap a client, a server, or explore the accompanying design documents and tests.
Overview
client/— MCP client implementation and helper subclients. Seeclient/README.mdfor usage and examples.server/— FastMCP server template and exampleapp/modules. Seeserver/README.mdfor running and extending.document/— Architecture notes, guides, and comparison essays;document/README.mdsummarizes the docs.tests/— Pytest-based unit and integration tests that exercise client/server flows and subscriptions.
Quickstart
- Clone and enter the repo:
git clone https://github.com/JoshuaWink/fastmcp-templates.git
cd fastmcp-templates
- Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate
- Install dependencies (project uses pyproject.toml where possible):
pip install -r requirements.txt
- Run the test suite:
pytest -q
- Read the area docs:
- Client:
client/README.md - Server:
server/README.md - Docs:
document/README.md
Templates & Usage
This repo is marked as a GitHub template. Use the green "Use this template" button on GitHub to scaffold a new repo.
Contributing
Please open issues or pull requests. Tests are required for new features.
License
Apache-2.0