MCP.Market

Okama MCP server

by mbk-dev·io.github.mbk-dev/okama-mcp·v3.1.0·5 stars

Portfolio analytics via the okama library: backtests, Monte Carlo, efficient frontier, PNG charts

A94/100grade A
What users say
No reviews yet
Be the first
Safety scan
A94/100

full report

Adoption
Growing

5 stars196 downloads/wk

Reviews

Write one

Nobody has reviewed Okama yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Okama tools

No tool declarations could be read from the package source. They show once the server is installed.

Public scan report

scanner v0.1.10 · 2026-10-29 · same rubric, same numbers if you re-run it

no findings
  • Code scan29 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 3 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year9/10
Overall 94/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Okama compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
94/100
higher than 96% of 48,243 servers
GitHub stars
5
more than 83% of 28,706 servers
Downloads a week
196
more than 75% of 12,306 servers with a package

Release history: 4 versions in the registry since 2026-08-31, latest 2026-10-27, typically one every 17 days.

Install Okama in Claude Code, Cursor or VS Code

claude mcp add okama-mcp -- uvx okama-mcp
Add to Cursor

What the publisher says

From the Okama repository's README, as published. We do not edit it. Read it on GitHub

okama-mcp

<!-- mcp-name: io.github.mbk-dev/okama-mcp -->

MCP (Model Context Protocol) server that exposes the okama investment portfolio toolkit to AI assistants — Claude Desktop, Claude Code, Cursor, Codex, and any other MCP-compatible client.

With okama-mcp installed, you can ask an AI things like:

"Backtest a portfolio of 30% gold and 70% real estate over the last 15 years."

*"Run a Monte Carlo retirement forecast on that portfolio, withdrawing $1,000/month

indexed to inflation, over 25 years."*

"What's the tangency portfolio of SPY, BND, and GLD with a 3% risk-free rate?"

…and the AI uses the MCP tools to call okama directly — no Python code needed.

Built on FastMCP. Single codebase, two transports: stdio (for local clients) and streamable-http (for self-hosting). okama-mcp is free and open source — no hosted service, no registration; you run it yourself, locally or on your own server.

Install

Requires Python ≥ 3.11 (same floor as okama itself); okama ≥ 2.2.0 is installed automatically.

The easiest way — no clone, no venv — is uv or pipx:

uvx okama-mcp stdio          # run straight from PyPI
# or
pipx install okama-mcp

Plain pip works too:

pip install okama-mcp

[!WARNING]

With pip, prefer a dedicated virtual environment: on most modern Linux distros the

system Python is marked externally managed (PEP 668), so pip install outside a venv

fails, and a shared environment risks dependency conflicts. In your MCP client config,

point command at the absolute path of the okama-mcp script inside the venv — GUI

clients don't see your shell PATH. uvx and pipx avoid all of this by isolating

the install automatically.

To work on the code, install from source instead:

git clone https://github.com/mbk-dev/okama-mcp
cd okama-mcp
poetry install

Run

# stdio — for Claude Desktop, Claude Code, Cursor (local IPC)
okama-mcp stdio

# streamable HTTP — for self-hosting on your own server
okama-mcp http --host 127.0.0.1 --port 8765

When running from a source checkout, prefix each command with poetry run.

Connect a client

Claude Desktop

Edit ~/Library/Application Support/Claude/claudedesktopconfig.json (macOS) or %APPDATA%\Claude\claudedesktopconfig.json (Windows):

{
  "mcpServers": {
    "okama": {
      "command": "uvx",
      "args": ["okama-mcp", "stdio"]
    }
  }
}

Restart Claude Desktop; the server appears in the tools menu.

Claude Code

To make the server available in every project (works from any directory):

claude mcp add --scope user okama -- uvx okama-mcp stdio

Developers running from a source checkout can use claude mcp add okama -- poetry run okama-mcp stdio from the project root instead.

Or commit a .mcp.json at the project root so the whole team picks it up:

{
  "mcpServers": {
    "okama": {
      "command": "uvx",
      "args": ["okama-mcp", "stdio"]
    }
  }
}

Cursor

Add the server to .cursor/mcp.json in your project (or ~/.cursor/mcp.json to make it global):

{
  "mcpServers": {
    "okama": {
      "command": "uvx",
      "args": ["okama-mcp", "stdio"]
    }
  }
}

Codex (CLI & Desktop)

Add the server with one command:

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Okama: common questions

Is Okama MCP server safe?
Yes, by our scan: it is graded A (94/100). Read the Okama safety report
How do I install Okama?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Okama need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Okama maintained?
The last commit was 9 days ago (2026-10-27). The latest release is v3.1.0.
What can I use instead of Okama?
Servers from other publishers that do the same job: TradingMCP MCP server.
How does Okama compare with other MCP servers?
safety score 94/100 (higher than 96% of 48,243 servers); github stars 5 (more than 83% of 28,706 servers); downloads a week 196 (more than 75% of 12,306 servers with a package). Full comparison.

Alternatives to Okama

Same job from other publishers: the closest match first, then the best rated.

  • TradingMCP
    Market analysis for AI assistants: screeners, multi-timeframe analysis, backtests, in-chat charts.
    A