Glot MCP
Officialby tradeglot
README.md
# Glot MCP
Lets AI assistants (Claude, Cursor, Copilot and other MCP clients) use the real Glot tools: check code, propose edits, convert Pine Script, and run honest backtests. Skills in `glot-skills` show the AI how; this server does the real thing.
> **Status: in development.** Glot is not released yet. The local server ships inside the `glot` command line tool (`glot mcp`), which is not publicly available yet; a hosted server is planned.
## What the AI can do
| Tool | Does |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| `compile_check` | Check Glot source and return diagnostics with `GLT-` codes |
| `apply_edit` | Apply exact-text edits and return the checked result for the person to review; nothing is saved |
| `convert_code` | Convert Pine Script v5/v6 to Glot, with a conversion report |
| `start_backtest`, `get_backtest` | Backtest a strategy on CSV bars; costs must be stated; the report always holds in-sample and out-of-sample results |
Details, planned tools and handles: [docs/tools.md](docs/tools.md). Machine-readable list: [schema/tools.json](schema/tools.json).
**The boundary:** no tool can place, change, confirm or cancel an order, deploy a strategy or touch a broker account. AI never places a real-money order, and a language model is never in the real-time decision loop.
## Connect a client
```bash
claude mcp add glot-mcp -- glot mcp
```
Other clients and the launcher: [docs/clients.md](docs/clients.md).
## What is in this repository
| Path | Content |
| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [`docs/`](docs/) | Tools, handles, the trading boundary, client setup |
| [`schema/tools.json`](schema/tools.json) | The tools the local server serves (names, descriptions, input schemas) |
| [`packages/launcher`](packages/launcher) | `@tradeglot/glot-mcp`: finds `glot` and starts the server; `--check` lists tools and refuses a server with a trading tool |
The server itself is part of the Glot tools; this repository holds the open interface, documentation and launcher.
## Develop
```bash
pnpm install
just check
```
License: Apache 2.0. Contributions need a signed [CLA](CLA.md); see [CONTRIBUTING.md](CONTRIBUTING.md). Names and logos: [TRADEMARKS.md](TRADEMARKS.md).
Backtests describe the past and do not predict future results. Trading involves risk of loss.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues