Skip to main content
Glama
clawpanel-mcp
by Sidarau

clawpanel-mcp

Your ClawPanel workspace, as an MCP server. Clients connect from ChatGPT (deep-research compatible), Claude, or any MCP client over OAuth 2.1 — and see only their own workspace: knowledge base, memory, agents, and activity.

This is the client-facing sibling of zme-mcp and the alpha ring of ClawPanel's public API surface.

Tools

Tool

What it does

Scope

search / fetch

ChatGPT-compatible pair over the tenant KB — {results: [{id, title, url}]}, fetch(id) → full text

kb

ingest

Add a document (extracted text) to the tenant KB; searchable via search/fetch afterward. Idempotent per source

kb

memory_search

Semantic search over workspace memory

memory

remember

Add a memory item (note, decision, fact)

memory

agents

The workspace's agents (name, model, gateway)

brain

workspace_status

Agents + recent workflow runs + tool activity

brain

chat_history

Recent workspace chat messages

brain

Every tool is tenant-scoped by the OAuth token. The client never passes a tenant id; the server resolves it from the authenticated profile and filters every query server-side.

Related MCP server: Bcontext

How auth works (alpha)

Full OAuth 2.1: DCR, PKCE, authorization codes, refresh, revocation.

  1. ChatGPT/Claude discovers metadata, registers itself (DCR), opens /authorize.

  2. The client signs in with their ClawPanel email + passphrase.

  3. The server resolves email → profiles row → tenant_id and issues a token whose scopes come from server-side profile config — never from the request.

  4. Scopes mirror the mcp_tokens vocabulary: brain, memory, kb, drive.

Rings: alpha (passphrases in env, in-memory sessions) → beta (Supabase auth sessions, persistent grants) → prod (per-profile labels, RLS-enforced direct connections). Token contract is frozen from alpha.

Configuration

Variable

Purpose

CLAWPANEL_DB_URL

Supabase project URL (defaults to the clawpanel_db project)

CLAWPANEL_DB_KEY

service-role JWT. Server-only — it bypasses RLS, so tenant isolation is enforced in code on every query. Auto-resolves from NoxKey zeuglab/clawpanel/CLAWPANEL_DB_SERVICE_ROLE_JWT on macOS.

CLAWPANEL_OAUTH_PROFILES

JSON: {"client@co.com": {"secret": "…", "scopes": ["brain","memory","kb"]}}

CLAWPANEL_BASE_URL

Public URL (for OAuth metadata/redirects)

CLAWPANEL_RING

alpha (default) / beta / prod

NVIDIA_API_KEY

Optional — enables vector arm of hybrid KB search and semantic memory search

Run

uvicorn-grade Docker deploy: see Dockerfile + fly.toml → flyctl deploy
# local:
CLAWPANEL_OAUTH_PROFILES='{...}' clawpanel-mcp --http --port 8080
# → POST /mcp · GET /healthz · OAuth at /.well-known/*

Connect from ChatGPT

Settings → Security and login → Developer mode → on, then chatgpt.com/plugins → + → https://clawpanel-mcp.fly.dev/mcp → sign in with your ClawPanel email + passphrase. Works in deep research (search/fetch make your KB citable).

Verification

scripts/verify_clawpanel.py runs the full OAuth dance for two tenants and asserts tenant isolation (each sees only their own agents/chat, cross-tenant fetch returns nothing), scope gating, and every tool against live data.

KB ingestion (ingest)

ingest(title, text, source_url=None) chunks the text with a word-window splitter (≤460 estimated tokens/chunk, well under the 512-token embed cap) and writes zme_chunks rows for the caller's tenant. Notes on the live schema:

  • This project has no sources table and no source_url column on chunks. The zme_chunks_one_parent constraint requires every chunk to link to exactly one parent (drive_node_id XOR kb_page_id), so each ingested doc also creates a kb_pages row (unique per-tenant slug, full text as body_md) and chunks link to it via kb_page_id.

  • content_tsv is a generated stored column (context_prefix + heading + content), so the lexical arm of zme_search picks up new chunks automatically — no trigger to maintain.

  • Chunks are embedded with nvidia/nv-embedqa-e5-v5 using input_type=passage (the stored side; queries use input_type=query — the model is asymmetric). Embeddings are 1024-dim vector(1024) and the vector arm is HNSW-indexed; both arms verified live end-to-end.

  • Idempotent per source: the marker (sha256(source_url) or sha256(title+text)) lives in context_prefix and drives the slug; re-ingesting the same source updates the page and replaces its chunks in place instead of duplicating.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Multi-tenant MCP server with OAuth 2.1 authorization, enabling tenant-scoped tool access and audit logging.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Exposes a self-hosted shared workspace over MCP where AI agents and their teammates read and write tasks, decisions, docs and results, so each session picks up where the last one left off. It adds hybrid cited search, per-workspace OAuth or scoped tokens, change feeds for cheap re-sync, and an append-only audit trail of every agent or human write.
      AGPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI platforms and agents to connect over remote MCP with OAuth to a self-hosted, portable workspace of working rules, roles, projects, documents, tasks, and checkpoints so work can continue across platforms without losing context.
      AGPL 3.0