Rozkoduj MCP
Official<div align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/rozkoduj/rozkoduj-mcp/main/docs/assets/logo-dark.svg">
<img alt="Rozkoduj MCP" src="https://raw.githubusercontent.com/rozkoduj/rozkoduj-mcp/main/docs/assets/logo.svg" width="240">
</picture>
# Decode the Markets
Market intelligence for your AI assistant - algo-trading strategies, analytics and specialized research knowledge.
[](https://pypi.org/project/rozkoduj-mcp/)
[](LICENSE)
[](https://python.org)
[](https://github.com/rozkoduj/rozkoduj-mcp/actions/workflows/ci.yml)
[](https://codecov.io/gh/rozkoduj/rozkoduj-mcp)
[](https://cursor.com/install-mcp?name=rozkoduj&config=eyJ1cmwiOiJodHRwczovL21jcC5yb3prb2R1ai5jb20vbWNwIn0%3D)
[](https://insiders.vscode.dev/redirect/mcp/install?name=rozkoduj&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.rozkoduj.com%2Fmcp%22%7D)
</div>
> ### Just ask
>
> - *"What strategy works best on AAPL?"*
> - *"Show me the top strategy's backtest - return, max drawdown, win rate."*
> - *"How risky is BTC?"*
> - *"How do I avoid overfitting a backtest?"*
## Getting started
The hosted server works immediately - no API key, no sign-up. Signing in on a
paid tier adds the deeper knowledge base to research results.
**Standard config** works in most MCP clients:
```json
{
"mcpServers": {
"rozkoduj": {
"url": "https://mcp.rozkoduj.com/mcp"
}
}
}
```
<details>
<summary><b>Cursor</b></summary>
Click the **Add to Cursor** button above, or add to `~/.cursor/mcp.json`:
```json
{
"mcpServers": {
"rozkoduj": {
"url": "https://mcp.rozkoduj.com/mcp"
}
}
}
```
</details>
<details>
<summary><b>VS Code</b></summary>
Click the **Install in VS Code** button above, use the CLI:
```bash
code --add-mcp '{"name":"rozkoduj","type":"http","url":"https://mcp.rozkoduj.com/mcp"}'
```
or add to `.vscode/mcp.json`:
```json
{
"servers": {
"rozkoduj": {
"type": "http",
"url": "https://mcp.rozkoduj.com/mcp"
}
}
}
```
</details>
<details>
<summary><b>Claude Code</b></summary>
```bash
claude mcp add --transport http rozkoduj https://mcp.rozkoduj.com/mcp
```
Add `--scope user` to enable it in every project.
</details>
<details>
<summary><b>Claude Desktop / claude.ai</b></summary>
**Settings → Connectors → Add custom connector**, then enter:
```
https://mcp.rozkoduj.com/mcp
```
Connectors are account-level, so the server is available in both the desktop
app and claude.ai. Sign in with Rozkoduj when prompted, or skip it to use the
anonymous tier.
</details>
<details>
<summary><b>ChatGPT</b></summary>
Custom MCP connectors need **Developer mode** (Plus/Pro/Team/Enterprise/Edu):
1. **Settings → Connectors → Advanced** - enable *Developer mode*.
2. **Settings → Connectors → Create** - name it `Rozkoduj`, set the MCP
server URL to `https://mcp.rozkoduj.com/mcp`, pick *OAuth* (or
*No authentication* for the anonymous tier), and create.
3. In a chat, open **+ → Developer mode** and toggle Rozkoduj on.
</details>
<details>
<summary><b>Self-hosted (PyPI / Docker)</b></summary>
```bash
uvx rozkoduj-mcp # run straight from PyPI
pip install rozkoduj-mcp # or install
docker run -p 8080:8080 $(docker build -q .) # or containerized
```
Defaults to stdio transport; set `MCP_TRANSPORT=streamable-http` to serve
HTTP. See [Self-host with your own key](#self-host-with-your-own-key) to run
as your subscription tier.
</details>
## How it works
You ask in plain language. The AI picks the right tool. You get an answer with
evidence - strategy metrics you can rank, or research passages you can cite -
not a data dump.
| You ask | You get |
| ---------------------------------------------- | ------------------------------------------------------------------- |
| *"What strategy works best on AAPL?"* | Strategies backtested on AAPL, ranked by their score on it |
| *"How risky is BTC?"* | The instrument dossier - volatility, drawdowns, character fingerprint |
| *"What does the research say about position sizing?"* | Ranked passages with `slug` + `locale` for citation |
## Tools
One tool per pillar. All four are read-only.
- **leaderboard** - the strategy leaderboard: published, backtested
strategies, ranked. Sort by score or APY - `apy_desc` ranks by `cagr_usd`
(annualised return in USD, the cross-market canon; local `cagr` is the
fallback); filter by family or by instrument symbol ("what works best on
AAPL?").
- **strategy** - one strategy's full dossier: metrics, risk mode, parameters,
and the backtest summary.
- **instrument** - the catalog of covered markets, or one instrument's
dossier: buy-and-hold facts and the six-axis character fingerprint.
- **research** - one search across the research: articles plus, on paid
tiers, the deeper knowledge base. Returns cited passages.
## Example prompts
**Explore the leaderboard**
```
What strategy works best on AAPL?
Show me the highest-APY strategy and its max drawdown.
Which strategy family performs best?
```
**Dig into a strategy**
```
Give me the full details on the MA Crossover strategy.
What's the win rate and risk mode of your top strategy?
```
**Explore the markets**
```
Which markets do you cover?
How risky is BTC - volatility, drawdowns, character?
```
**Search the research**
```
How do I avoid overfitting a backtest?
Find articles about position sizing and drawdown control.
```
## Self-host with your own key
The hosted server at `https://mcp.rozkoduj.com/mcp` authenticates to the data
API automatically. When you self-host the package, supply your own Rozkoduj API
key so calls run as your subscription tier instead of the anonymous tier:
1. Ask for a key at hello@rozkoduj.com (format `rzk_` + 40 hex). It maps to
your account's tier.
2. Provide it via the `ROZKODUJ_API_KEY` environment variable - never inline in
committed config. In an MCP client, reference it as `${env:ROZKODUJ_API_KEY}`.
3. A malformed value is ignored (requests fall back to anonymous); the active
posture is logged at startup, prefix only - the key is never logged.
Precedence: `ROZKODUJ_API_KEY` (self-host) > anonymous. The hosted server
authenticates automatically.
## License
MIT - [rozkoduj.com](https://rozkoduj.com)
TDQS
Scored across 4 tools
Each tool addresses a distinct concern: research searches articles and knowledge, leaderboard ranks strategies, strategy returns one full dossier, and instrument handles the market catalog or dossier. The descriptions explicitly cross-reference when to use leaderboard versus strategy, so an agent should not confuse them.
All four tool names are single lowercase nouns representing the returned resource: research, strategy, instrument, and leaderboard. This is a clear and predictable convention with no mixed styles, verbs, or separators.
Four tools is well-scoped for a read-only research/analytics server: one for content search, one for rankings, one for strategy details, and one for instrument data. Each tool earns its place and the count is comfortably within the ideal 3-15 range.
The server covers the obvious read-only workflows: discover strategies via leaderboard, inspect a strategy's backtest via strategy, look up instruments via instrument, and search research via research. Cross-links prevent dead ends, such as using the same symbol in leaderboard to find strategies backtested on an instrument.