Standardizes external data access using the Model Context Protocol.
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coreason_mcp-0.7.0.tar.gz.
File metadata
- Download URL: coreason_mcp-0.7.0.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a2a7e561a5d0b07b992165efdd8ac101f52778125dfda967116d2ebe9900a9e
|
|
| MD5 |
b9562250afc341468ef1708b162e0998
|
|
| BLAKE2b-256 |
477728077963eaf4c731f6bc1def8a2e750d7bee6f8f55ce2f318e54037d4a9d
|
Provenance
The following attestation bundles were made for coreason_mcp-0.7.0.tar.gz:
Publisher:
publish.yml on CoReason-AI/coreason-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coreason_mcp-0.7.0.tar.gz -
Subject digest:
1a2a7e561a5d0b07b992165efdd8ac101f52778125dfda967116d2ebe9900a9e - Sigstore transparency entry: 868332672
- Sigstore integration time:
-
Permalink:
CoReason-AI/coreason-mcp@a0cc562d201a7599f0fb7c7ae84096412a4c2f3e -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/CoReason-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a0cc562d201a7599f0fb7c7ae84096412a4c2f3e -
Trigger Event:
release
-
Statement type:
File details
Details for the file coreason_mcp-0.7.0-py3-none-any.whl.
File metadata
- Download URL: coreason_mcp-0.7.0-py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54a97ec9a8704c73b4af1be97b871f6edcf2e5cc801ae8658728cf8db2288d66
|
|
| MD5 |
7468889dc01708ad1884b45ac24b821b
|
|
| BLAKE2b-256 |
84ce67d83d23812782812a0792b58308f052b9cac536e7d7c9237f8fb91e9c4f
|
Provenance
The following attestation bundles were made for coreason_mcp-0.7.0-py3-none-any.whl:
Publisher:
publish.yml on CoReason-AI/coreason-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coreason_mcp-0.7.0-py3-none-any.whl -
Subject digest:
54a97ec9a8704c73b4af1be97b871f6edcf2e5cc801ae8658728cf8db2288d66 - Sigstore transparency entry: 868332683
- Sigstore integration time:
-
Permalink:
CoReason-AI/coreason-mcp@a0cc562d201a7599f0fb7c7ae84096412a4c2f3e -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/CoReason-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a0cc562d201a7599f0fb7c7ae84096412a4c2f3e -
Trigger Event:
release
-
Statement type: