Skip to main content
Glama
p2c2e

openalgo-mcp

by p2c2e

This is an MCP server for OpenAlgo - (logic is copied from https://github.com/marketcalls/openalgo )

It has been repackaged for use as a module without necessity of cloning repos and installing python script.

Requirements:

  • Local 3.12 or higher Python

  • uvx installed

How to Install uvx (uv)

  • Universal (Windows, Linux, Mac):

    pip install uv
  • Mac (with Homebrew):

    brew install uv
  • Prebuilt binaries:
    Download from uv releases for your platform.

After installation, the uvx command will be available in your terminal.

Addition of an entry similar to below on your favorite MCP Client. The below is tested with Cline plugin on VSCode.

 "openalgo": {
      "disabled": false,
      "timeout": 60,
      "type": "stdio",
      "command": "uvx",
      "args": [
        "openalgo-mcp@latest",
        "YOUR-OPENALGO-KEY",
        "http://127.0.0.1:5000"
      ]
    }

Related MCP server: ib-async-mcp

Divergence from upstream

This package talks to the OpenAlgo REST API (/api/v1/*) directly over httpx. It deliberately does not depend on the openalgo Python library, so installs stay small and work on musl/Alpine images (the library ships a Rust abi3 core with no musllinux wheel).

Consequence: the 9 upstream research tools that compute indicators locally via openalgo.ta (calculate_indicator, get_trend_snapshot, get_momentum_snapshot, get_volatility_snapshot, get_support_resistance, detect_signals, screen_instruments, multi_timeframe_analysis, correlation_beta) are not included. They are pure local math, not REST endpoints, so they cannot be proxied. Everything that maps to an API endpoint is covered - 40 tools.

get_historical_data matches upstream behaviour: start_date/end_date are optional, bars (default 20) or lookback_days size the window, epoch timestamps are normalised to ISO 8601 (IST for intraday intervals), and the response carries count/returned/ truncated metadata.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that enables interaction with Interactive Brokers TWS/Gateway via natural language for portfolio management and market data retrieval. It provides tools for account summaries, historical data, and a secure two-step confirmation process for placing and canceling orders.
    6
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    MCP server for Interactive Brokers API, enabling account management, trading, market data, options, scanners, and news via natural language.
    33
    3
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    An MCP server that enables AI agents to scan the market, manage positions, and retrieve trading metrics for Bybit through natural language commands.
    1
    AGPL 3.0