MCP Hub
Back to servers

GoClaw MCP Server

Enables AI assistants to manage GoClaw AI gateway infrastructure through a comprehensive suite of 66 tools for managing agents, sessions, and configurations. It provides real-time gateway context and guided workflows with enterprise-grade security features like audit logging and secret scrubbing.

glama
Stars
2
Updated
Mar 15, 2026
Validated
Mar 17, 2026

goclaw-mcp

MCP (Model Context Protocol) server for GoClaw Gateway server management. Enables AI assistants like Claude, Cursor, and other MCP clients to manage your GoClaw AI gateway infrastructure.

Features

  • 66 MCP tools covering all GoClaw management operations
  • 4 MCP resources for real-time gateway context
  • 4 MCP prompts for guided workflows
  • Dual transport: stdio (local) + Streamable HTTP (production)
  • Enterprise security: audit logging, rate limiting, secret scrubbing, origin validation
  • Type-safe: Full TypeScript with Zod schema validation

Quick Start

stdio (Claude Code, Cursor, etc.)

npx goclaw-mcp

Add to your MCP client config:

Claude Code (~/.claude.json):

{
  "mcpServers": {
    "goclaw": {
      "command": "npx",
      "args": ["goclaw-mcp"],
      "env": {
        "GOCLAW_SERVER": "http://localhost:8080",
        "GOCLAW_TOKEN": "your-admin-token"
      }
    }
  }
}

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "goclaw": {
      "command": "npx",
      "args": ["goclaw-mcp"],
      "env": {
        "GOCLAW_SERVER": "http://localhost:8080",
        "GOCLAW_TOKEN": "your-admin-token"
      }
    }
  }
}

Streamable HTTP (production, multi-client)

GOCLAW_SERVER=http://localhost:8080 \
GOCLAW_TOKEN=your-token \
GOCLAW_MCP_PORT=3100 \
npx goclaw-mcp-http

MCP endpoint: http://localhost:3100/mcp

Configuration

VariableRequiredDefaultDescription
GOCLAW_SERVERYesGoClaw gateway URL
GOCLAW_TOKENNoBearer token (determines RBAC role)
GOCLAW_USER_IDNoDefault user ID for multi-tenant scoping
GOCLAW_MCP_PORTNo3100HTTP transport port
GOCLAW_MCP_ALLOWED_ORIGINSNolocalhostComma-separated allowed origins
GOCLAW_MCP_RATE_LIMIT_RPMNo60Rate limit per session (req/min)
GOCLAW_LOG_LEVELNoinfoLog level: debug, info, warn, error

Available Tools

System (3)

ToolDescription
goclaw_healthCheck gateway health
goclaw_statusGet gateway status
goclaw_models_listList available LLM models

Agents (13)

ToolDescription
goclaw_agent_listList all agents
goclaw_agent_getGet agent details
goclaw_agent_createCreate agent
goclaw_agent_updateUpdate agent
goclaw_agent_deleteDelete agent
goclaw_agent_files_listList context files
goclaw_agent_files_getRead context file
goclaw_agent_files_setWrite context file
goclaw_agent_files_deleteDelete context file
goclaw_agent_links_listList delegation links
goclaw_agent_links_setSet delegation link
goclaw_agent_links_removeRemove delegation link
goclaw_agent_shareShare agent with user

Sessions (5)

ToolDescription
goclaw_session_listList chat sessions
goclaw_session_previewPreview session messages
goclaw_session_deleteDelete session
goclaw_session_resetReset session history
goclaw_session_labelLabel a session

Configuration (3)

ToolDescription
goclaw_config_getGet gateway config
goclaw_config_applyApply full config
goclaw_config_patchPatch config fields

Providers (5)

ToolDescription
goclaw_provider_listList LLM providers
goclaw_provider_getGet provider details
goclaw_provider_createAdd provider
goclaw_provider_updateUpdate provider
goclaw_provider_deleteRemove provider

MCP Servers (7)

ToolDescription
goclaw_mcp_server_listList registered MCP servers
goclaw_mcp_server_getGet MCP server details
goclaw_mcp_server_createRegister MCP server
goclaw_mcp_server_updateUpdate MCP server
goclaw_mcp_server_deleteRemove MCP server
goclaw_mcp_server_grant_agentGrant agent access
goclaw_mcp_server_grant_userGrant user access

Skills (5)

ToolDescription
goclaw_skill_listList skills
goclaw_skill_getGet skill details
goclaw_skill_updateUpdate skill
goclaw_skill_grant_agentGrant agent access
goclaw_skill_grant_userGrant user access

Custom Tools (6)

ToolDescription
goclaw_custom_tool_listList custom tools
goclaw_custom_tool_getGet tool details
goclaw_custom_tool_createCreate custom tool
goclaw_custom_tool_updateUpdate custom tool
goclaw_custom_tool_deleteDelete custom tool
goclaw_custom_tool_invokeInvoke tool directly

Cron Jobs (6)

ToolDescription
goclaw_cron_listList cron jobs
goclaw_cron_createCreate cron job
goclaw_cron_updateUpdate cron job
goclaw_cron_deleteDelete cron job
goclaw_cron_toggleEnable/disable cron
goclaw_cron_runTrigger cron immediately

Teams (5)

ToolDescription
goclaw_team_listList teams
goclaw_team_getGet team details
goclaw_team_createCreate team
goclaw_team_updateUpdate team
goclaw_team_deleteDelete team

Traces (2)

ToolDescription
goclaw_trace_listList LLM execution traces
goclaw_trace_getGet trace with spans

Channels (2)

ToolDescription
goclaw_channel_listList messaging channels
goclaw_channel_toggleEnable/disable channel

Memory (4)

ToolDescription
goclaw_memory_listList memory documents
goclaw_memory_getRead memory document
goclaw_memory_createStore memory document
goclaw_memory_deleteDelete memory document

Resources

URIDescription
goclaw://statusGateway status summary
goclaw://modelsAvailable LLM models
goclaw://agentsAll agents summary
goclaw://configCurrent gateway config

Prompts

PromptDescription
goclaw_setup_agentGuide through creating a new agent
goclaw_troubleshootSystematic troubleshooting
goclaw_review_configReview config for improvements
goclaw_optimize_agentOptimize agent settings

Security

Built for enterprise environments:

  • Secret scrubbing — Tokens, API keys, passwords never appear in logs
  • Audit logging — Every tool invocation logged with structured JSON
  • Rate limiting — Token bucket per session (HTTP transport)
  • Origin validation — DNS rebinding prevention
  • Input validation — Zod schemas on all tool parameters
  • Auth passthrough — Bearer token forwarded to GoClaw RBAC

Development

# Install
pnpm install

# Build
pnpm build

# Test
pnpm test

# Type check
pnpm lint

# Dev mode (watch)
pnpm dev

License

MIT

Reviews

No reviews yet

Sign in to write a review