Skip to main content

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) and sse (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

coreason_mcp-0.7.0.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coreason_mcp-0.7.0-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

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

Hashes for coreason_mcp-0.7.0.tar.gz
Algorithm Hash digest
SHA256 1a2a7e561a5d0b07b992165efdd8ac101f52778125dfda967116d2ebe9900a9e
MD5 b9562250afc341468ef1708b162e0998
BLAKE2b-256 477728077963eaf4c731f6bc1def8a2e750d7bee6f8f55ce2f318e54037d4a9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_mcp-0.7.0.tar.gz:

Publisher: publish.yml on CoReason-AI/coreason-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for coreason_mcp-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54a97ec9a8704c73b4af1be97b871f6edcf2e5cc801ae8658728cf8db2288d66
MD5 7468889dc01708ad1884b45ac24b821b
BLAKE2b-256 84ce67d83d23812782812a0792b58308f052b9cac536e7d7c9237f8fb91e9c4f

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page