Skip to main content

A gateway for MCP servers with Repello ARGUS integration

Project description

Repello MCP Gateway with ARGUS Integration

The Repello MCP Gateway is an advanced intermediary solution for Model Context Protocol (MCP) servers, architected to integrate directly with Repello's ARGUS API. It centralizes your AI infrastructure and secures it by analyzing every request and response.

The Gateway acts as an intermediary between your development environment (like Cursor or Claude Desktop) and other MCP servers. It:

  1. Reads server configurations from an mcp.json file.
  2. Manages the lifecycle of these configured MCP servers.
  3. Intercepts all tool calls and responses.
  4. Sends the content of each request and response to the Repello ARGUS API for real-time analysis.
  5. Provides a unified interface for discovering and interacting with all proxied MCPs.

Installation

Python (recommended)

Install the repello-mcp-gateway package:

pip install repello-mcp-gateway

How It Works

The Gateway requires credentials for the Repello ARGUS API to function. You must provide a Tracking ID and an API Key via command-line arguments at startup.

When a tool is called (e.g., from an editor like Cursor), the Gateway intercepts the call. Before forwarding it to the downstream MCP server (like a filesystem server), it sends the request payload to https://argusapi.repello.ai/analyze-prompt. If the API approves the request, it's sent to the tool.

When the tool returns a result, the Gateway intercepts the response. It sends this response to https://argusapi.repello.ai/analyze-response. If the API approves, the final result is sent back to the client application.

If the ARGUS API detects a threat in either the request or response, it will return an error, and the Gateway will block the action, raising an AnalysisError.

Usage

You must start the gateway with your mcp.json path, a valid tracking ID, and an API key.

repello-mcp-gateway --mcp-json-path ~/.cursor/mcp.json --tracking-id <your-tracking-id> --api-key <your-api-key>

At startup, the gateway will make a test call to the Repello API to validate the provided credentials. If the credentials are not valid, the gateway will fail to start.

Example mcp.json Configuration

The client application (e.g., Cursor) should be configured to launch the gateway. The gateway, in turn, is configured to launch the downstream MCP servers. The client only needs to know about the gateway.

Cursor example:
{
  "mcpServers": {
    "repello-mcp-gateway": {
      "command": "repello-mcp-gateway",
      "args": [
        "--mcp-json-path",
        "~/.cursor/mcp.json",
        "--tracking-id",
        "YOUR_TRACKING_ID_HERE",
        "--api-key",
        "YOUR_API_KEY_HERE"
      ],
      "servers": {
        "filesystem": {
          "command": "npx",
          "args": ["-y", "@modelcontextprotocol/server-filesystem", "."]
        }
      }
    }
  }
}
Claude example:

First, find your python path:

which python

Then, configure your claude_desktop_config.json:

{
  "mcpServers": {
    "repello-mcp-gateway": {
      "command": "<python path>",
      "args": [
        "-m",
        "mcp_gateway.server",
        "--mcp-json-path",
        "<path to claude_desktop_config>",
        "--tracking-id",
        "YOUR_TRACKING_ID_HERE",
        "--api-key",
        "YOUR_API_KEY_HERE"
      ],
      "servers": {
        "filesystem": {
          "command": "npx",
          "args": ["-y", "@modelcontextprotocol/server-filesystem", "."]
        }
      }
    }
  }
}

Gateway Tools

The Gateway provides one primary tool for discovery:

  • get_metadata: Provides information about all available proxied MCPs to help LLMs understand which tools and resources are available through the gateway.

The tools from downstream servers (like list_directory from the filesystem server) will be dynamically registered on the gateway with a prefix (e.g., filesystem_list_directory).

License

MIT

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

repello_mcp_gateway-1.0.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

repello_mcp_gateway-1.0.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file repello_mcp_gateway-1.0.0.tar.gz.

File metadata

  • Download URL: repello_mcp_gateway-1.0.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for repello_mcp_gateway-1.0.0.tar.gz
Algorithm Hash digest
SHA256 68926144308d3486d08a2c6f5d9a0eb90f0ba2fb72d4d45bda69328724f1bf99
MD5 838a45aae9d3bee42a8454634d6f9bae
BLAKE2b-256 4ba47b9a1da54f082e484264c5b9a90d23a1c14a4b1460321ffe5f2082f1ed3f

See more details on using hashes here.

File details

Details for the file repello_mcp_gateway-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for repello_mcp_gateway-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7c9a603c1dbc03e7a4e8c1db67dba7ba23068dd70b9923d0b4a07e5fa112a0b
MD5 d164c66dfdabeed9f5f5dad2847fee90
BLAKE2b-256 70993cce0dcb21a9c64f3899a115af2f9a2665da686f5931e9ea0f394fb723d5

See more details on using hashes here.

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