Enterprise implementation of a Model Context Protocol (MCP) Server and Client using Python, demonstrating Streamable HTTP, JSON-RPC, tool discovery, and enterprise-ready architecture patterns for AI Agents.
This project demonstrates how to build a complete Model Context Protocol (MCP) solution using the official Python SDK.
The implementation includes:
- Enterprise MCP Server
- MCP Client
- Streamable HTTP Transport
- JSON-RPC Communication
- Automatic Tool Discovery
- Enterprise Cloud Architecture Services
The project simulates how AI Agents can securely communicate with enterprise systems through MCP while exposing reusable tools.
+----------------------+
| Developer |
+----------+-----------+
|
|
Python MCP Client
|
JSON-RPC / Streamable HTTP
|
+----------v-----------+
| Enterprise MCP Server|
+----------+-----------+
|
-----------------------------------------------------------
| | | |
server_status() add_numbers() cloud_architecture() calculate_cloud_cost()
|
AWS โข Azure โข Google Cloud
- MCP Server implementation using FastMCP
- MCP Client implementation
- Streamable HTTP transport
- JSON-RPC communication
- Automatic Tool Discovery
- Enterprise Tool Registration
- Error Handling
- Cloud Reference Architectures
- Extensible Tool Framework
- Python 3.10+
- Model Context Protocol (MCP)
- FastMCP
- Streamable HTTP
- JSON-RPC
- AWS
- Microsoft Azure
- Google Cloud Platform
enterprise-mcp-python-server/
โ
โโโ client.py
โโโ server.py
โโโ requirements.txt
โโโ README.md
โโโ .gitignore
Clone the repository
git clone https://github.com/alann20/enterprise-mcp-python-server.git
cd enterprise-mcp-python-serverCreate Virtual Environment
python -m venv .venvActivate Environment
.venv\Scripts\Activate.ps1source .venv/bin/activateInstall dependencies
pip install "mcp[cli]>=1.27,<2"python server.pyThe MCP endpoint will be available at
http://localhost:8000/mcp
Open another terminal
python client.pyExpected Output
Connection initialized successfully
Available Tools
server_status
add_numbers
cloud_architecture
Status OK
25 + 17 = 42
AWS Architecture Loaded
Returns the current server status.
Example
{
"status":"available",
"service":"Enterprise Architecture MCP Server"
}Adds two numeric values.
Input
{
"a":25,
"b":17
}Output
{
"result":42
}Returns a reference architecture for a cloud provider.
Supported providers
- AWS
- Azure
- Google Cloud
Example
{
"provider":"AWS",
"architecture":{
"compute":"Amazon EKS",
"storage":"Amazon S3",
"database":"Amazon Aurora"
}
}Returns an estimated monthly cloud cost.
Example
{
"instances":10,
"monthly_cost_per_instance":1500,
"estimated_monthly_cost":15000
}The project validates
- Server startup
- Client initialization
- Tool discovery
- Tool execution
- Structured JSON responses
- Error handling
- Unsupported providers
Understand
- Model Context Protocol
- MCP Client
- MCP Server
- JSON-RPC
- Streamable HTTP
- Tool Discovery
- Enterprise AI Integration
- Authentication (OAuth)
- JWT Authorization
- AWS Integration
- Azure Integration
- Google Cloud Integration
- PostgreSQL
- MongoDB
- Redis
- OpenAI
- Claude
- Gemini
- Vector Databases
- RAG
- LLMOps
- Monitoring
- Docker
- Kubernetes
- CI/CD
Michel Alan Lรณpez Lara
Enterprise Data and AI Architect
- Enterprise Architecture
- Cloud Strategy
- Data Architecture
- AI Governance
- Generative AI
https://www.linkedin.com/in/michel-alan-l%C3%B3pez-lara-49a88239/
Give it a โญ on GitHub!
- Model Context Protocol Specification
- MCP Python SDK
- JSON-RPC 2.0 Specification
- Python Documentation
- AWS Architecture Center
- Azure Architecture Center
- Google Cloud Architecture Framework
MIT License