Skip to main content

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"
      ]
    }

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openalgo_mcp-2.1.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

openalgo_mcp-2.1.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file openalgo_mcp-2.1.0.tar.gz.

File metadata

  • Download URL: openalgo_mcp-2.1.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.12

File hashes

Hashes for openalgo_mcp-2.1.0.tar.gz
Algorithm Hash digest
SHA256 fa6b19a57c71afa9139a626b88992def1a8eb20c94d24aa23d6cb23e71aafaef
MD5 e18e6fec66b3d39f48bc61e3b9348686
BLAKE2b-256 f72824014d0a033f270ae48ef4d8058dcb6d8bb90c857fd008455c21b1e2dbaa

See more details on using hashes here.

File details

Details for the file openalgo_mcp-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: openalgo_mcp-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.12

File hashes

Hashes for openalgo_mcp-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68c68189ae3f87c41a76cb870400ce4f3c4722a148b42b68a72c62c965b12cae
MD5 87a49b7bbfc89a703412ccf27a03fb89
BLAKE2b-256 9d8b21e3f48383fb5e49cacb07077cad38b4dafb94e5e64aa86e1ad1f7a562fd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 files

2.0.1

2 files

0.1.8

2 files

0.1.7

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page