InCoB/mcp-server-modular
3.2
If you are the rightful owner of mcp-server-modular and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The MCP Demo Server is a modular server designed to demonstrate best practices for building Model Context Protocol (MCP) applications.
MCP Demo Server
Running
masteraccount@Mac Server % cd mcp-server-demo masteraccount@Mac mcp-server-demo % export PYTHONPATH=$PWD/src uv run mcp dev src/mcp_demo/server.py
A modular Model Context Protocol (MCP) server that demonstrates best practices for building MCP applications.
Project Structure
mcp-demo/
āāā src/
ā āāā mcp_demo/ # Main package
ā āāā config/ # Configuration settings
ā āāā resources/ # MCP resources
ā āāā tools/ # MCP tools by domain
ā āāā utils/ # Shared utilities
ā āāā __init__.py # Package initialization
ā āāā server.py # Main server entry point
āāā pyproject.toml # Project configuration and dependencies
āāā README.md # This file
Prerequisites
- Python 3.11 or higher
- uv package manager
Installation
-
Clone the repository:
git clone https://github.com/yourusername/mcp-demo.git cd mcp-demo
-
Install the package and dependencies:
uv pip install .
Running the Server
You can run the server using uv
:
uv run src/mcp_demo/server.py
Development
To install in development mode:
uv pip install -e .
Features
- Modular architecture with clear separation of concerns
- Type-safe implementation
- Comprehensive error handling
- Security-first approach
- Easy to extend with new tools and resources
Documentation
For detailed documentation on:
License
MIT