coreason-mcp
The Universal Gateway Service for the Model Context Protocol (MCP).
coreason-mcp elevates the MCP ecosystem by acting as a centralized host that aggregates tools from multiple downstream servers (both local Stdio sidecars and remote SSE microservices) and exposes them via a unified HTTP API.
Features
- Universal Connectivity: Connects to any MCP-compliant server.
- Protocol Agnostic: Supports both
stdio(subprocess) andsse(HTTP) transports transparently. - Tool Aggregation: Merges tools from all connected servers into a single namespace.
- Gateway Server: High-performance FastAPI server for persistent connections.
- Identity Injection: Securely propagates user context to tools.
Installation
Library Mode
pip install coreason-mcp
Gateway Server Mode
Using Docker (Recommended):
docker run -d \
-p 8000:8000 \
-v $(pwd)/config.json:/app/config.json \
-e MCP_CONFIG_PATH=/app/config.json \
ghcr.io/coreason-ai/coreason-mcp:latest
Using CLI:
# Install dependencies
poetry install
# Run the server
uvicorn coreason_mcp.server:app --host 0.0.0.0 --port 8000
Configuration
The gateway is configured via a JSON file (default config.json).
{
"timeout": 30.0,
"servers": [
{
"name": "brave_search",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-brave-search"],
"env": {
"BRAVE_API_KEY": "YOUR_API_KEY"
}
},
{
"name": "clinical_db",
"url": "http://clinical-service:8080/sse"
}
]
}
API Reference
| Method | Endpoint | Description |
|---|---|---|
GET |
/health |
Returns server status and connected downstream agents. |
GET |
/tools |
Returns the aggregated list of tools in OpenAI schema format. |
POST |
/tools/execute |
Executes a tool. Payload: {"tool_name": "...", "arguments": {...}}. |
Documentation
For full documentation, visit the docs/ directory.
License
Prosperity Public License 3.0
Metadata
Release files for coreason-mcp 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| coreason_mcp-0.7.0.tar.gz | 19.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| coreason_mcp-0.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.7 kB
Release files / coreason_mcp-0.7.0.tar.gz
| Download URL | coreason_mcp-0.7.0.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a2a7e561a5d0b07b992165efdd8ac101f52778125dfda967116d2ebe9900a9e
|
|
BLAKE2b-256 checksum How to use checksums |
477728077963eaf4c731f6bc1def8a2e750d7bee6f8f55ce2f318e54037d4a9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 28, 2026.
Transparency logRelease files / coreason_mcp-0.7.0-py3-none-any.whl
| Download URL | coreason_mcp-0.7.0-py3-none-any.whl |
|---|---|
| Size | 26.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54a97ec9a8704c73b4af1be97b871f6edcf2e5cc801ae8658728cf8db2288d66
|
|
BLAKE2b-256 checksum How to use checksums |
84ce67d83d23812782812a0792b58308f052b9cac536e7d7c9237f8fb91e9c4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 28, 2026.
Transparency log