MCP server
The MCP server lets AI tools on your computer, like Claude Code, control Locus through the Model Context Protocol. They get the same tools as the AI sidebar. The MCP server is only available in the desktop apps.
Turning it on
Section titled “Turning it on”- Open Settings > AI features > MCP server.
- Turn on Enable the MCP server.
- Change the Port if needed. The default is 3790.
AI features has to be turned on under General. The server runs inside Locus, so Locus has to be open while you use it. It only accepts connections from your own computer and does not need an API key.
Connecting Claude Code
Section titled “Connecting Claude Code”Run this command in a terminal:
claude mcp add --transport http locus http://127.0.0.1:3790/mcpFor other MCP clients, add an HTTP server with the URL http://127.0.0.1:3790/mcp. Use your port if you changed it.
| Tool | What it does |
|---|---|
locus_command |
Runs a command from the input bar |
locus_objects |
Lists the objects with their types and values |
cas_evaluate |
Computes with the CAS without changing the construction |
cas_add_row |
Adds a row to the CAS view (Locus Classic) |
locus_view |
Shows or hides the algebra, graphics and CAS views (Locus Classic) |
locus_viewport |
Sets the visible area of the graphics view |
locus_screenshot |
Takes a picture of the graphics view |
Plugins can add more tools. The tools act on the Locus window you used last.
The MCP server is turned off during exams.