The local MCP connector for gcontext. Runs on your machine as a stdio MCP server, bridging your AI agent to your gcontext workspace in the cloud.
- Structure (files, folders, types, secret names) lives in the cloud
- Secret values and script execution stay local, on your machine
Add to Claude Code:
claude mcp add-json gcontext-personal '{"type":"stdio","command":"uvx","args":["gcontext-mcp"],"env":{"GCONTEXT_TOKEN":"<your token>"}}'Or run directly:
uvx gcontext-mcp| Variable | Required | Description |
|---|---|---|
GCONTEXT_TOKEN |
yes | Your workspace token (from app.gcontext.ai) |
GCONTEXT_API_URL |
no | API endpoint (default: https://app.gcontext.ai) |
If you self-host the gcontext backend, point GCONTEXT_API_URL to your instance:
{"type":"stdio","command":"uvx","args":["gcontext-mcp"],"env":{"GCONTEXT_TOKEN":"<token>","GCONTEXT_API_URL":"http://localhost:5179"}}See self-hosting docs for backend setup.
The connector exposes MCP tools for reading, writing, searching, and managing files in your gcontext workspace. Secret values are stored locally (in ~/.gcontext/.env) and injected at script runtime without ever leaving your machine.
MIT