utss-mcp
MCP (Model Context Protocol) server for building and backtesting UTSS trading strategies with Claude.
Installation
pip install utss-mcp
Usage with Claude Code
Add to your Claude Code MCP configuration:
{
"mcpServers": {
"utss": {
"command": "utss-mcp",
"args": []
}
}
}
Then use in Claude Code:
You: Help me build a mean reversion strategy for tech stocks
Claude: I'll help you build that strategy. Let me start the interactive builder.
[calls build_strategy]
What type of strategy would you like?
1. Mean Reversion - Buy oversold, sell overbought
2. Trend Following - Follow market direction
3. Breakout - Trade price breakouts
4. Calendar-based - Trade on day/week patterns
You: 1
Claude: [calls build_strategy with session_id]
Which indicator should trigger entry?
1. RSI - Relative Strength Index
2. Stochastic - Stochastic Oscillator
3. Williams %R
...
Available Tools
build_strategy
Build a trading strategy interactively through guided questions.
await build_strategy(
prompt="I want a mean reversion strategy",
session_id=None, # Omit for new session
)
validate_strategy
Validate a UTSS strategy YAML.
await validate_strategy(strategy_yaml="info:\n id: test\n...")
backtest_strategy
Run a backtest simulation.
await backtest_strategy(
strategy_yaml="...",
symbol="AAPL",
start_date="2023-01-01",
end_date="2024-01-01",
initial_capital=100000,
)
list_indicators
List all supported technical indicators.
await list_indicators()
Development
# Install in development mode
uv sync
# Run tests
uv run pytest packages/utss-mcp/tests
# Run server directly
uv run utss-mcp
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
utss_mcp-0.2.0.tar.gz
(6.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file utss_mcp-0.2.0.tar.gz.
File metadata
- Download URL: utss_mcp-0.2.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa17a26e0549b11a67fcf8b798647b783fae57951819733768dd64d7beff1953
|
|
| MD5 |
23d99b2dd751070a5510bac75a90b2d3
|
|
| BLAKE2b-256 |
187345e6bc6252db7efc1fa1250fc3566de31bc199a52a4517c6db6719201f4c
|
File details
Details for the file utss_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: utss_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6665d367292e7899cd09e22ebc405a224aba8e0a7b15d0d03d05771622e1d287
|
|
| MD5 |
dcfd35a067db001d21b1401667458a73
|
|
| BLAKE2b-256 |
b3e79351572264f589d962fe7bf7ec9a66ac3219a10f3c7d9e780a5b0ea7d6e3
|