Skip to main content

MCP server for Rastro catalog operations — 26 tools for schema, items, activities, snapshots, AI mapping, judging, and image editing

Project description

rastro-mcp

Standalone MCP server for Rastro catalog workflows.

What this is

  • API-key-only MCP server for Codex/Claude
  • No direct database access needed
  • Activity-first safety model (stage -> review in dashboard -> apply)

Install

git clone https://github.com/Rastro-AI/rastro-mcp.git
cd rastro-mcp
uv sync

Required environment

# Option A (recommended): API key auth
export RASTRO_API_KEY="rastro_pk_..."

# Option B: bearer token from web auth session
# export RASTRO_ACCESS_TOKEN="<jwt>"

export RASTRO_BASE_URL="https://catalogapi.rastro.ai/api"
# optional
# export RASTRO_ORGANIZATION_ID="<org_uuid>"

Browser login from CLI (no copy/paste)

uv run rastro-mcp login
# then apply the printed export in your shell:
# export RASTRO_ACCESS_TOKEN='...'

This opens dashboard.rastro.ai, uses your existing web session, and redirects back to a localhost callback.

Run (stdio)

uv run rastro-mcp

Equivalent:

uv run python -m rastro_mcp.server

Codex / Claude MCP config

Use a workspace .mcp.json entry like:

{
  "mcpServers": {
    "rastro": {
      "command": "bash",
      "args": [
        "-lc",
        "cd /ABSOLUTE/PATH/rastro-mcp && export RASTRO_API_KEY='rastro_pk_...' && export RASTRO_BASE_URL='https://catalogapi.rastro.ai/api' && uv run rastro-mcp"
      ]
    }
  }
}

Safety defaults

  • Programmatic approve/apply is disabled.
  • Use dashboard review URL to approve/apply.
  • Large staged updates are chunked internally into one activity.

Docs

License

MIT

PyPI Publish Notes

  • GitHub Actions workflow: .github/workflows/publish.yml
  • Trusted publisher values on PyPI must match:
    • Owner: Rastro-AI
    • Repository: rastro-mcp
    • Workflow: publish.yml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rastro_ai-0.2.0.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rastro_ai-0.2.0-py3-none-any.whl (41.3 kB view details)

Uploaded Python 3

File details

Details for the file rastro_ai-0.2.0.tar.gz.

File metadata

  • Download URL: rastro_ai-0.2.0.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rastro_ai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8368f723bb0017fac5c854fb5df226b8da4e48476d86a1a22966c92ce7c8e4b3
MD5 f324eeb743bdfcacc0837dc5c6835061
BLAKE2b-256 772b5b5b7e9081e69d796ab89a0f093e6272da9f65879e8aa44df503e6acf06b

See more details on using hashes here.

Provenance

The following attestation bundles were made for rastro_ai-0.2.0.tar.gz:

Publisher: publish.yml on Rastro-AI/rastro-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rastro_ai-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: rastro_ai-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 41.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rastro_ai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45c6f800d257cb8cbdb82958424d1e0e92ae7df7c11991b533d9e8eab5c7e4aa
MD5 02113873f54f821193e114537d35397e
BLAKE2b-256 344b51b4a65f31b4d7ed80c9844cfdabbc412ba4e89778fd51ace915390e4e59

See more details on using hashes here.

Provenance

The following attestation bundles were made for rastro_ai-0.2.0-py3-none-any.whl:

Publisher: publish.yml on Rastro-AI/rastro-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page