MCP Server Hero
A professional Model Context Protocol (MCP) server template and framework for building robust MCP servers in Python.
Features
- 🏗️ Modular Architecture: Clean separation of tools, resources, prompts, and configuration
- 🔧 Easy Registration: Simple APIs for registering tools, resources, and prompts
- 📝 Type Safety: Full type hints and validation throughout
- 🚀 Multiple Transports: Support for stdio and SSE (Server-Sent Events) transports
- 📊 Professional Logging: Built-in logging and debugging support
- 🧪 Testing Ready: Structured for easy testing with pytest
- 📖 Comprehensive Examples: Both basic and advanced usage examples
Enterprise Features
- ⚡ Middleware System: Request/response processing pipeline with validation, logging, timing, and rate limiting
- 🧩 Plugin System: Dynamic plugin loading with dependency management
- 🔐 Authentication & Authorization: Flexible auth providers with permission-based access control
- 💾 Caching System: Multi-layer caching with TTL support and LRU eviction
- 📊 Metrics & Monitoring: Comprehensive performance metrics and health checks
- 🛡️ Rate Limiting: Token bucket rate limiting with per-client support
Quick Start
Installation
Basic Usage
Enterprise Usage
Running Examples
Development
Architecture
Components
Tools
Tools perform actions and return results:
Resources
Resources provide read-only data:
Prompts
Prompts generate structured messages:
Middleware
Process requests through a pipeline:
Plugins
Extend functionality dynamically:
Configuration
Monitoring & Metrics
The server provides comprehensive monitoring:
Project Commands
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Run
make check
to verify code quality - Add tests if applicable
- Submit a pull request
License
MIT License - see LICENSE file for details.
MCP Protocol
This framework implements the Model Context Protocol (MCP), enabling seamless integration between AI models and external data sources and tools.
For more information about MCP, visit the official documentation.
This server cannot be installed
A professional Python framework and template for building robust Model Context Protocol (MCP) servers with modular architecture, enterprise features like authentication and rate limiting, and comprehensive tooling. Provides easy-to-use APIs for registering tools, resources, and prompts with full type safety and multiple transport support.
Related MCP Servers
- -securityFlicense-qualityThis is an MCP server that facilitates building tools for interacting with various APIs and workflows, supporting Python-based development with potential for customizable prompts and user configurations.Last updated -
- -securityAlicense-qualityA streamlined foundation for building Model Context Protocol servers in Python, designed to make AI-assisted development of MCP tools easier and more efficient.Last updated -14MIT License
- AsecurityAlicenseAqualityA template repository for creating custom Model Context Protocol (MCP) servers in Python that can be integrated with applications like Claude Desktop or Cursor.Last updated -35MIT License
- -securityFlicense-qualityA Python template for building Model Context Protocol (MCP) servers that expose tools via JSON-RPC, enabling secure and scalable context and tool invocation for language models.Last updated -