An API workspace you can git diff — and an AI can drive.
A desktop, web, and CLI client where collections live in your repo
and a built-in MCP server lets any AI client read, author, and run requests.
API Circle Studio is an API client in the spirit of Postman and Insomnia, rebuilt around two ideas the others miss:
- Your workspace is a Git repo. Collections, environments, and mock definitions are plain JSON pushed to your own GitHub repo on a working branch. Teams collaborate the way they collaborate on code — branches, diffs, pull requests, review.
- Your workspace is an AI tool catalog. A built-in Model Context Protocol server exposes 71 tools, so Claude, ChatGPT, Cursor, Copilot, and any other MCP client can read, author, and run requests on your behalf.
No cloud account. No vendor lock-in. Your data stays on your machine and in your repo.
- Own your data. The workspace is JSON you can read, diff, and back up. Secrets are encrypted locally (AES-GCM via WebCrypto, wrapped by the OS keychain on desktop). Nothing is uploaded to a third-party server.
- Collaborate through pull requests. Auto-create a working branch from
main, push to save, open a PR from inside the app. API collections get the same review workflow as the code that calls them. - AI-native, not AI-bolted-on. The MCP server is a first-class surface, not a plugin. An assistant can scan a codebase, propose a collection, generate runnable client code, or spin up a mock from a spec — all without leaving the chat.
- Runs everywhere you do. Desktop, browser, CLI, and embeddable npm packages — one engine, one workspace format, one mutation API behind all of them.
- Comfortable to tune. Settings ships 60+ themes (Command Center is the default; dark, light, and high-contrast variants for VS Code, GitHub, Kanagawa, Everforest, Nightfox, Tokyo Night, Solarized, and more) and 50+ fonts (Cascadia Code by default; full mono and sans families from Google Fonts plus a safe macOS system stack). Every theme also recolors the Monaco code editor. Click-open Theme and Font Family pickers, one-second hover previews with a pending indicator, keyboard previews, and UI text-size scaling round it out.
- Built on open standards. MCP for AI, Git for sync, OpenAPI / Postman / Insomnia / HAR for import. No proprietary formats waiting to trap you.
A workspace is two JSON documents — workspace.synced.json (the shared
collection tree, environments, mocks, releases) and workspace.local.json
(per-device history, sessions, UI state). The synced document pushes to a
GitHub repo on a working branch; teammates pull, branch, and merge it like any
other file. Per-connection release management supports both private
collections and a public marketplace.
The bundled @apicircle/mcp-server speaks the open
Model Context Protocol over stdio, so it
works with Claude Desktop, Claude Code, ChatGPT, GitHub Copilot, Cursor,
Continue, Cline, Zed, and Windsurf — or anything else that talks MCP. The
71-tool catalog covers request and folder CRUD, environment authoring,
assertions, execution plans, history, mock-server lifecycle, codebase
scanning, imports, code generation, and natural-language authoring.
Point API Circle at an OpenAPI, Swagger, Postman, or Insomnia file and get a
running HTTP mock on localhost in seconds. The Hono-based engine handles
$ref dereferencing, per-endpoint overrides (flip a 200 to a 503 to
exercise error paths), conditional response rules, request validation, and
response multipliers. Mock definitions live in the synced workspace so
teammates share them; runtime state stays on the local machine.
- 17 authentication schemes, all end-to-end functional — Bearer, Basic, API key, custom header, the full OAuth2 grant set (client credentials, auth code, PKCE, password, implicit, device flow, with auto-refresh), AWS SigV4, Digest, NTLM, Hawk, and JWT. Signing primitives are verified against the relevant RFC and NIST reference vectors.
- Import what you already have — cURL commands, OpenAPI/Swagger, Postman collections, Insomnia exports, and HAR files.
- Generate client code from any saved request — cURL, fetch, Node (axios), Python (requests), Go, and Rust.
- Environments with priority ordering and cross-workspace variable sources.
- Global Assets for reusable JSON Schemas, GraphQL definitions, and file
assets. Request uploads, linked workspace downloads, execution plans, and
mock binary responses can all point at the same tracked asset metadata while
file bytes travel as Git blobs outside
workspace.json. - Assertions and multi-step execution plans that chain requests.
- Request history with full headers, body previews, and assertion results.
| Surface | Best for |
|---|---|
| Desktop app | Day-to-day development (Windows / macOS / Linux) |
| Web app | Quick access, zero install |
| CLI | CI pipelines, terminals, headless agents |
| npm packages | Embedding the engine in your own tooling |
API Circle Studio runs in two modes. The workspace lives in different places in each. Pick the one that matches what you're doing.
Open the app and a workspace is created automatically in browser storage (IndexedDB). No folder to manage, no flags to remember.
Everything works from inside the app:
- The Mocks panel starts and stops local mock servers from your OpenAPI, Postman, or Insomnia specs.
- The MCP panel generates a ready-to-paste config snippet for every AI client (Claude Desktop, Cursor, Copilot, ChatGPT, …). Copy it, drop it into your client's config, restart — the client now drives your workspace.
This is the easiest way to get started. You don't need a workspace folder, a
git repo, or a --workspace flag.
When you want to collaborate via PRs, run the CLI in CI, or point an external AI client at the workspace as JSON-on-disk, use the app's Link to Git feature to bridge your local workspace to a GitHub repo. The repo becomes your portable workspace.
Teammates get a usable workspace by cloning it:
git clone https://github.com/<you>/<your-workspace-repo>The cloned directory is the workspace folder. It contains:
workspace.synced.json— collections, environments, mock definitions (shared with the team)workspace.local.json— per-device history, sessions, runtime state (kept out of git)
Pass that folder to the CLI or MCP server with --workspace:
apicircle-mcp --workspace ./<your-workspace-repo>Wherever the docs or a CLI flag say "workspace folder," they mean a directory shaped like a clone of an API Circle workspace repo. If you don't have one yet, start in mode A — that's how you create the workspace. "Link to Git" then turns it into a repo.
Grab the installer for your OS from the
latest release, then
follow the one-time setup step in docs/installing.md.
# Spin up a mock server from an OpenAPI spec — no workspace needed
npx @apicircle/cli mock ./openapi.yaml
# Start the MCP server. With no workspace flag, it boots against the desktop's
# multi-workspace registry and exposes every workspace via workspace.list.
npx @apicircle/cli mcp
# Pick a registered workspace (matches by name or id, case-insensitive)
npx @apicircle/cli mcp --workspace-name Petstore
npx @apicircle/cli import openapi ./postman_collection.json --workspace-name Petstore
npx @apicircle/cli run "Smoke Tests" --workspace-name Petstore --reporter junit
# Or point at a workspace directory directly (CI / git-cloned, skips the registry)
npx @apicircle/cli run "Smoke Tests" --workspace-path ./checkout-repo --reporter junit
# Manage the workspace registry from the terminal
npx @apicircle/cli workspaces list
npx @apicircle/cli workspaces create "Internal API"
npx @apicircle/cli workspaces use PetstoreTwo mutually-exclusive flags pick the workspace:
--workspace-name <name-or-id>— registry lookup. Names are case-insensitive; ids survive renames (handy for CI).--workspace-path <dir>— literal filesystem directory containingworkspace.synced.json. Skips the registry; ideal for git-cloned workspace repos.
When neither is passed, the CLI uses the registry's active workspace (or the current directory when no registry exists yet).
Requires Node ≥ 20 and pnpm ≥ 9.
pnpm install
pnpm dev:web # web app → http://localhost:5174The easy path: open the Desktop app, head to MCP → Connection. The top of the tab shows the live workspace-mirror path and a Refresh button. Below that, follow the four steps under Set up your AI client — install the binary, pick your AI client, paste the snippet, restart. MCP → Prompts ships a curated catalog of starter prompts.
Multi-workspace by default: apicircle-mcp boots against the desktop's
multi-workspace registry. AI clients see every workspace via the
workspace.list tool. When the AI asks for data without naming a workspace
and more than one is registered, the server returns a structured "found
multiple workspaces" envelope so the AI can disambiguate or call entity-
specific tools (which default to the active workspace).
Headless or repo-cloned path:
npm install -g @apicircle/mcp-serverFull per-client instructions (Cursor, Copilot, ChatGPT, Codex, Continue, Cline, Zed, Windsurf, generic stdio) live in Connect your AI client.
Every write to a workspace — from the UI, the CLI, or an AI tool call — funnels
through a single mutation API (applyMutation) in @apicircle/core. That
means an AI agent can never produce workspace state the UI couldn't have
produced, and vice versa. The same parsers, the same Hono mock engine, and
the same workspace format back all four surfaces. See
docs/architecture/platform.md for the full
design record.
API Circle Studio is pre-launch and self-funded. Expect rough edges and
occasional breaking changes before v1.0. The desktop builds are currently
unsigned (code-signing certificates are not yet funded), so the first
launch triggers a one-time OS security prompt —
docs/installing.md walks through it. Builds are
produced in the open by this repo's GitHub Actions. Issues and feedback are
very welcome: github.com/apicircle/studio/issues.
- Connect your AI client
- Mock server guide
- MCP tool catalog reference
- Authentication — the 17-scheme matrix
- Platform architecture (MCP, mock engine, CLI, desktop)
- Installing the desktop app
- QA — coverage status and E2E CI
apps/
web/ Vite + React shell — the browser build
desktop/ Electron shell — mock + MCP bridges, OS-keychain secrets
packages/
ui-components/ React UI + Zustand store + IndexedDB persistence
core/ Request execution, auth signing, assertions, mutation API
shared/ Types, generateId, validators, encryption helpers
git/ GitHub API client + sync logic
mock-server-core/ Hono mock-server engine + OpenAPI/Postman/Insomnia parsers
mcp-server/ stdio MCP host with the 71-tool catalog
cli/ `apicircle` binary — mock / mcp / import / run subcommands
@apicircle/{shared,core,mock-server-core,mcp-server,cli} are published to
npm; apps/* and the git and ui-components packages are workspace-private.
pnpm install # install workspace deps
pnpm dev:web # web dev server → http://localhost:5174
pnpm dev # turbo dev (all apps)
pnpm build # turbo build
pnpm check # typecheck (tsc --noEmit per package)
pnpm lint # eslint
pnpm test # vitest unit tests
pnpm test:e2e # Playwright E2E (web)
pnpm test:e2e:live-github # live api.github.com suite; requires bot PAT envDesktop: pnpm --filter @apicircle/desktop build, then … start.
API Circle Studio is released under a custom source-available license —
the source is open to read, study, and contribute to, but this is not an
OSI-approved open-source license. It is free for personal, educational, and
non-commercial use (plus a 30-day commercial evaluation period); ongoing
commercial use requires a separate license. See LICENSE for the
full terms, or contact apicircle365@gmail.com for commercial licensing.