home / mcp / redeal analytics mcp server

Redeal Analytics MCP Server

MCP Server generated by mcp.ag2.ai

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ag2-mcp-servers-redeal-analytics-api": {
      "command": "python",
      "args": [
        "mcp_server/main.py",
        "stdio"
      ],
      "env": {
        "CONFIG": "{\"version\":1}",
        "SECURITY": "<SECURITY>",
        "CONFIG_PATH": "mcp_server/mcp_config.json"
      }
    }
  }
}

You run an MCP (Model Context Protocol) Server that bridges your OpenAPI-defined data source to MCP clients. It lets you serve the redeal analytics API in a standardized, protocol-friendly way, enabling efficient local development, testing, and integration with other MCP tools.

How to use

You connect to the server from an MCP client by launching the local MCP server in stdio mode and then pointing the client to the running process. The server exposes the configured API based on the provided OpenAPI source, so your client can request data, actions, or context as defined by that API.

How to install

Prerequisites must be present on your system before you install and run the server. You need Python 3.9 or newer, along with pip and uv.

Step 1: Clone the project directory and navigate into it.

Step 2: Install the development dependencies.

pip install -e ".[dev]"

If you prefer to use uv instead of the dev environment, you can install editable dependencies with uv.

uv pip install --editable ".[dev]"

Additional notes

Run the MCP server using the Python entry point for the local runtime in stdio mode. This starts the server as a local process that communicates via stdio with your MCP client.

python mcp_server/main.py stdio

Configuration and startup options

The server can be configured via environment variables. The following keys are supported and can be set to tailor the runtime without modifying code.

  • CONFIG_PATH: Path to a JSON configuration file (e.g., mcp_server/mcp_config.json).
  • CONFIG: A JSON string containing the configuration.
  • SECURITY: Environment variables for security parameters (e.g., API keys).

Available tools

ruff

Linting and formatting tool used to enforce code quality and style.

mypy

Static type checker to verify type correctness across the codebase.

pytest

Testing framework used to run unit and integration tests.

static-analysis

Custom script to run static analysis tools such as bandit and semgrep.

pre-commit

Pre-commit hooks to run linting, formatting, and basic checks before commits.

hatch

Build and publish tooling for the project.