Orebit
Set up MCPPasang MCP

STEP-BY-STEP TUTORIAL · ABOUT 10 MINUTES

MCP tutorial: connect your AI to Orebit.

MCP is a plug that lets an AI app use tools on your computer. With it, the AI answers from the geology map and your own project files instead of guessing. Setup takes about 10 minutes, no coding.

Prefer no setup? Open GeoSuite and use the built-in AI Chat in the browser.

GeoSuite AI Chat →

1

Pick your AI app

Use any app in this table. GeoSuite needs the GeoSuite Desktop app and is set up in step 5.

Your AI appGeoAtlasPitOptGeoSuite Desktop
Claude CodeYesYesYes
CursorYesYesYes
CodexYesYesNot yet
AntigravityYesYesNot yet
Claude DesktopYesYesNot yet
2

Install uv once

uv is a small free program that downloads and runs the Orebit tools. Open Terminal on macOS or Linux, or PowerShell on Windows, then paste the line for your computer.

macOS / Linux

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows PowerShell

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
3

Download PitOpt once

Close the terminal, open a new one, paste this and wait about a minute until the cursor returns. Skip this step if you do not need PitOpt.

uvx --from "pitopt[mcp]" python -c "import pitopt.mcp_server"
4

Copy the config and paste it

Choose the tools, choose your app, press Copy.

Paste into the chat of Claude Code, Codex, Cursor or Antigravity. The agent does the setup.
Set up these Orebit MCP servers for yourself on this computer.
1. If uvx is missing, install uv from https://docs.astral.sh/uv/ (ask me first).
2. Run once and wait for it to finish (first download takes about a minute): uvx --from "pitopt[mcp]" python -c "import pitopt.mcp_server"
3. Add these servers to your own MCP config without removing existing ones:
{
  "mcpServers": {
    "orebit-geoatlas": { "command": "uvx", "args": ["orebit-geoatlas-mcp"] },
    "orebit-pitopt": { "command": "uvx", "args": ["--from", "pitopt[mcp]", "pitopt-mcp"] }
  }
}
4. Tell me if a restart is needed, then confirm the tools are listed.
Paste to your agent
Paste the text into the chat box of Claude Code, Codex, Cursor or Antigravity and send it. The agent edits its own settings.
Claude Desktop
Open Settings, then Developer, then Edit Config. Paste into claude_desktop_config.json, save, quit Claude fully and open it again.
Cursor
Paste into the file .cursor/mcp.json in your home folder, then restart Cursor.
Terminal: Claude Code or Codex
Paste the lines into your terminal and press Enter.
5

Add GeoSuite from the desktop app

  1. Install GeoSuite Desktop and open your project.
  2. Open the profile menu, then Local MCP server, then Enable.
  3. Copy the setup for Claude Code or Cursor shown there and paste it. Keep GeoSuite open while you chat.

GeoSuite Desktop ↗

6

Check that it works

Restart the AI app. In Claude Code run this (in Codex: codex mcp list) and look for each Orebit server as connected. In Claude Desktop or Cursor, open the MCP settings and check that the Orebit servers are listed as running.

claude mcp list

Then ask this in a new chat:

Use orebit-geoatlas to look up point -2.10, 106.10 and tell me the recommended UTM zone.

It worked if the answer says UTM 48S (EPSG:32748), in the Bangka Belitung region, with candidate units such as Formasi Ranggam and granite. Candidates are a screening list; confirm the unit on the map sheet.

Questions to try

  • GeoAtlas

    Use orebit-geoatlas to check point -2.10, 106.10 in Bangka. Which rock units are candidates, and which UTM zone should my drillhole collars use?

  • GeoAtlas

    Find geology units in Sulawesi that mention laterite or ultramafic rock.

  • GeoSuite

    Use orebit-geosuite to summarise the validation findings in my open project and list overlapping assay intervals.

  • GeoSuite

    Plot a grade histogram per domain and tell me which domain looks mixed.

  • PitOpt

    Use orebit-pitopt to load my project.yaml at this location: (paste the full file location). Run revenue factors 0.70 to 1.00 and report NPV and strip ratio of the selected pit.

If something fails

"uvx not found"

Close and reopen the app after installing uv. If Claude Desktop on macOS still cannot find it, run this in a terminal and use the full location it prints as the "command" value.

which uvx
PitOpt fails to connect the first time

The first download takes longer than the app waits. Run the command in step 3, wait for it to finish, then restart the app.

GeoSuite shows error 401

GeoSuite Desktop makes a new token every time it starts. Copy the command again from Local MCP server and paste it. If you added it before, remove the old entry first.

claude mcp remove orebit-geosuite
The GeoSuite command is rejected

Update GeoSuite Desktop to the latest release, then copy the command again.

The tools do not appear

Check that the config file is still valid (matching braces and commas), keep any servers you already had inside the same "mcpServers" block, and restart the app.

What the AI cannot do

All three servers run strictly locally (stdio or 127.0.0.1 loopback). AI agents are blocked in code from approving geological solids, applying top-cuts, repairing raw data, deleting projects, or exporting official reports without an explicit human click.