MCP Server Template
This enterprise MCP server template provides a production-ready, architecture-first foundation for building MCP servers in Python, with capability registry, dependency injection, and Docker support.
README
Enterprise MCP Server Template
This repository is an opinionated, production-oriented architecture template for building MCP (Model Context Protocol) servers using Python. It focuses on maintainability, extensibility, and engineering practices rather than implementing domain-specific capabilities.
This project intentionally contains minimal business logic.
Its purpose is to demonstrate how to structure production-grade MCP servers. Future repositories extend this template with Linux, Docker, Git, Database, and Kubernetes capabilities.
Overview
This template provides an enterprise-ready Model Context Protocol (MCP) foundation. It is designed to act as a platform for exposing infrastructure operations to AI agents and clients via a standardized communication protocol.
Features
- Opinionated & Architecture-first: Built around a strict, layered architecture.
- Capability Registry: A centralized manager for dynamically loading and registering tools, resources, and prompts.
- Strict Decoupling: Business logic is isolated from the server layer and external infrastructure is abstracted via adapters.
- Production-Ready: Pre-configured with structured logging (
structlog), health monitoring, dependency injection, and environment configuration. - Dockerized: Ready for production and local development using Docker and Docker Compose.
- Fast and Modern: Built with Python 3.11+ and relies on
uvfor blazing fast package management.
Roadmap
This repository establishes the canonical architecture that will natively evolve into:
This repository
↓
Linux MCP
↓
Docker MCP
↓
Git MCP
↓
Database MCP
↓
Redis MCP
↓
Kubernetes MCP
Getting Started
Local Development
# Start development server
make dev
# Run linting
make lint
# Run formatting
make format
# Run tests
make test
Docker
# Build development image
make docker
# Run the dockerized server
docker run -it simple-mcp-server:dev
Testing
This repository uses pytest and uv to manage and run test cases efficiently.
Running Tests
To run the entire test suite, simply use:
make test
Note: Under the hood, this runs uv run pytest.
Test Structure
Tests are organized into logical layers that reflect the enterprise architecture:
tests/unit/: Tests individual components (e.g.,HealthCheckintest_health.py).tests/integration/: Tests the interactions between capabilities, the registry, and services.tests/e2e/: End-to-end testing of the fully booted server (Transport to Infrastructure).tests/fixtures/: Shared test data, mock configurations, and dependency overrides.
Adding New Tests
When contributing new capabilities, place the corresponding test files in the tests/unit/ or tests/integration/ directory using the test_*.py naming convention.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.