Click on "Install 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., "@QMCPlist all available tools and recent invocation history"
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.
QMCP - Model Context Protocol Server
A spec-aligned Model Context Protocol (MCP) server built with FastAPI.
Features
✅ Tool Discovery - List available tools via
/v1/tools✅ Tool Invocation - Execute tools via
/v1/tools/{name}✅ Invocation History - Audit trail via
/v1/invocations✅ Human-in-the-Loop - Request human input via
/v1/human/*✅ Persistence - SQLite with SQLModel/aiosqlite
✅ Python Client -
qmcp.client.MCPClientfor workflows✅ Metaflow Examples - Ready-to-use flow templates
✅ Structured Logging - JSON logs with structlog
✅ Request Tracing - Correlation IDs across requests
✅ Metrics - Prometheus-compatible
/metricsendpoint✅ CLI Interface - Manage via
qmcpcommand
Quick Start
Client Library
See docs/client.md for full API documentation.
CLI Commands
API Endpoints
Endpoint | Method | Description |
| GET | Health check |
| GET | List available tools |
| POST | Invoke a tool |
| GET | List invocation history |
| GET | Get single invocation |
| POST | Create human request |
| GET | List human requests |
| GET | Get request with response |
| POST | Submit human response |
| GET | Prometheus metrics |
| GET | Metrics as JSON |
Built-in Tools
echo - Echo input back (for testing)
planner - Create execution plans
executor - Execute approved plans
reviewer - Review and assess results
Development
Architecture
See docs/architecture.md for the full architectural overview.
The system follows a three-plane architecture:
Client/Orchestration - Metaflow workflows (MCP client)
MCP Server - FastAPI service (this project)
Execution/Storage - Tools and database
Documentation
Overview - What and why
Architecture - How and constraints
Tools - Tool capabilities
Client Library - Python client API
Human-in-the-Loop - HITL guide
Deployment - Production deployment guide
Contributing - Development guidelines
Roadmap - Development phases
Example Flows
See examples/flows/ for Metaflow integration examples:
simple_plan.py - Basic tool invocation
approved_deploy.py - HITL approval workflow
License
MIT