CLI + Agent Skill vs MCP: cutting AI agent context overhead
MCP servers are convenient, but dumping 60+ tool schemas into every session quietly burns 20,000 tokens before your agent reads a single line of code. Here is the exact token math in BaseStudio — and why we ship both a ~3,200-token CLI Agent Skill and a progressive ~18-tool stdio MCP server.
Developers who run Claude Code, Codex, or Cursor all day watch their context window closely. Connect three or four full-featured MCP servers and 40,000–60,000 tokens vanish from every fresh conversation before you type a single prompt.
When we built BaseStudio’s agent interface, we measured our own MCP server’s full tool definition list (tools/list for all 66 tools): about 82,000 characters — roughly 20,000 tokens at four characters per token.
Loading 20,000 tokens of database schema-migration, image-optimization, and CSV-import tool definitions into a coding session where you only asked Claude to check two tasks is wasteful. So we solved it in two ways.
Path 1: CLI + Agent Skill (~3,200 tokens, loads on demand)
If your agent can run shell commands — which covers Claude Code, Codex, Cursor, and any terminal or SSH agent — the command line paired with our Agent Skill is the fastest, leanest option.
npx skills add gabrielbacha/basestudio-agent-kitWhy it beats a permanently mounted MCP server for shell agents:
- Zero idle token tax: The skill is ~13,000 characters (~3,200 tokens) and loads only when your task actually mentions BaseStudio, a
.basefile, or a.basestudiodatabase. - Just-in-time command discovery: Instead of stuffing every subcommand’s JSON schema into the system prompt, the agent runs
basestudio <command> --helponly for the command it needs. - Works over SSH and in scripts: Because it is a plain CLI binary (
~/.local/bin/basestudio), you can pipe output intojq, run it in cron jobs, or invoke it on a headless Linux box over SSH. - Identical safety guarantees: Every CLI edit uses the exact same schema checks,
--expect-revision,--dry-run,--as NAME, and sharedCmd/Ctrl+ZUndo as the MCP server.
Path 2: Progressive stdio MCP server (~18 core tools at startup)
Some clients — like Claude Desktop or sandboxed desktop chat interfaces — do not have shell access. They need MCP.
Rather than forcing every MCP session to pay the 66-tool / ~20,000-token tax up front, basestudio mcp starts with only ~18 core tools enabled: reading views and schemas, querying and editing records, working through agent tasks, and undo/history.
When the agent needs something rarer — changing column types, editing view filters, managing database tables, importing Notion/Airtable exports, or optimizing images — it calls enable_tools to turn on only the needed group (views, properties, records, databases, or files):
# Default: starts lean (~18 core tools) and enables groups on demandclaude mcp add --scope user basestudio -- basestudio mcp
# For clients that do not reload dynamic tool lists: enable specific groups or all 66 toolsclaude mcp add --scope user basestudio -- basestudio mcp --tools=views,propertiesclaude mcp add --scope user basestudio -- basestudio mcp --tools=allEvery MCP tool simply invokes the matching basestudio command underneath, signed automatically with the MCP client’s name in your Undo history and Task Activity feed.
Quick decision rule
| Your setup | Recommended interface | Startup context cost |
|---|---|---|
| Claude Code, Codex, Cursor, or any shell/SSH agent | CLI + Agent Skill (npx skills add gabrielbacha/basestudio-agent-kit) |
0 tokens idle (~3,200 when active) |
| Claude Desktop or chat client without shell (supports dynamic tools) | Stdio MCP default (basestudio mcp) |
~18 core tools (groups load on demand) |
| MCP client that cannot reload tool lists | Stdio MCP with explicit groups (--tools=views,properties or --tools=all) |
Only the groups you pass |
Read the complete tool and flag reference in MCP server and Agent Skill or jump straight to the AI agent setup page.
Try BaseStudio on your own files — or in the browser first.
Free forever for Bases up to 30 records, with no account and plain Markdown or SQLite files on your disk.