Enterprise MCP Server Template
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Enterprise MCP Server Templatecheck the server health endpoint"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Enterprise MCP Server Template
A production-ready, transport-independent foundation for building enterprise Model Context Protocol (MCP) servers in Python.
This template contains zero business logic. It provides the infrastructure, abstractions, and tooling that every MCP server needs, so downstream projects can focus on their domain capabilities.
Template First Principle All new MCP servers must be created from this template. Generic capabilities are added to the template; server-specific capabilities remain in the individual repository. The template evolves independently, and downstream projects adopt new template versions through controlled upgrades.
Features
Transport-independent core — Streamable HTTP (default), SSE, and stdio behind a single
Transportabstraction. Business logic never depends on a concrete transport.Configuration — hierarchical loading: bundled defaults → environment YAML → environment variables → CLI overrides (Pydantic v2 + YAML).
Dependency injection — small, testable async-capable DI container.
Structured logging —
structlogwith JSON and console renderers.Event bus — async-first publish/subscribe with subscriber isolation.
Tool framework —
@tooldecorator, metadata models, registry, and input validation.Extendable scaffolds — plugins, middleware, hooks, providers, workers, persistence, security, and AI packages with defined extension points.
Plugin framework — minimal plugin architecture with manifest-based discovery, lifecycle hooks, and a unified
PluginContext.Form Automation plugin — deterministic DOM-based form detection, pre-interaction validation, and structured form tools (
fill,check,uncheck,select,submit).Observable —
/health,/live,/ready,/versionendpoints.Developer tooling —
uv, Ruff, Pyright, pytest, pre-commit, Makefile.Operations — Docker, docker-compose, Kubernetes manifests, GitHub Actions.
Related MCP server: MCP Template
Technology Stack
Concern | Choice |
Python | 3.13 |
Package manager |
|
Web framework | FastAPI |
MCP SDK | Official Python MCP SDK |
Validation | Pydantic v2 |
Config | pydantic-settings + YAML |
Logging | structlog |
CLI | Typer |
HTTP server | Uvicorn |
Testing | pytest |
Async | asyncio |
Lint | Ruff |
Type checking | Pyright |
Hooks | pre-commit |
Docs | MkDocs Material |
Containers | Docker |
Plugins | Built-in framework |
Form Automation | Deterministic DOM + Retry |
Quick Start
Prerequisites: uv with Python 3.13.
uv sync --all-extras
make doctor # verify the environment
make test # run the test suite
make run # start the server (http://localhost:8000)Check the server is healthy:
curl http://localhost:8000/health
curl http://localhost:8000/ready
curl http://localhost:8000/versionCLI
uv run enterprise-mcp serve # run the server
uv run enterprise-mcp version # print version info
uv run enterprise-mcp doctor # environment diagnostics
uv run enterprise-mcp config --json # show effective configuration
uv run enterprise-mcp plugins # list extensions (scaffold)Repository Layout
src/enterprise_mcp/
├── foundation/ # DI container, app lifecycle, startup/shutdown
├── config/ # loaders, defaults, settings/*.yaml
├── observability/ # logging, metrics, tracing
├── security/ # auth, RBAC, secrets, audit
├── transport/ # base interface, HTTP, SSE, stdio
├── mcp/ # protocol and server abstractions
├── tools/ # decorators, metadata, loader, validator, registry
├── extensions/ # plugins, middleware, hooks, providers
├── workers/ # executors, schedulers, queues, retry
├── persistence/ # repositories, models, migrations, database
├── interfaces/ # REST, WebSocket, internal API
├── events/ # event bus
├── resources/ # templates, static, sample-data
├── utils/ # shared utilities
├── ai/ # memory, prompts, agents (reserved)
└── cli/ # Typer-based CLIDocumentation
License
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Guarded MCP server for agent-readable business truth, provenance, readiness, and discovery.
Primarily to be used as a template repository for developing MCP servers with FastMCP in Python, P…
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
MCP server for Boson Protocol — on-chain agentic commerce for physical & digital goods.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA foundation layer for building production-grade Model Context Protocol (MCP) servers with base classes, documentation, and consistent implementation patterns.MIT
- AlicenseNot gradedqualityDmaintenanceA production-ready Python template for building MCP servers with enterprise features including registry integration, configuration management, structured logging, and extensible patterns for tools, resources, and prompts.MIT

NitroStackofficial
FlicenseNot gradedqualityBmaintenanceA Python framework for building MCP servers with modular architecture, dependency injection, and built-in authentication. Enables creating scalable, testable MCP services with features like pipeline interceptors and background tasks.4-- FlicenseNot gradedqualityCmaintenanceThis 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.-