SmartGate — MCP server for Claude Code: setup and tools
SmartGate is an MCP server for Claude Code that searches and fetches pages, compresses context, and caps token spend before it reaches the model.
MIT ★ 3 updated 2026-10-28
claude mcp add --transport http smartgate https://smartgate.network/api/mcpWhat SmartGate does
SmartGate sits between an agent and the outside web: it searches for pages, pulls them in as Markdown, strips overlapping results, and shrinks the text before it lands in a model's context. It also tracks token usage against a budget and keeps a cross-session memory of facts a team wants recalled later.
The server exposes seven smart_* tools — smart_search, smart_fetch, smart_dedup, smart_context_gate, smart_budget_guard, smart_memory, smart_pipe — and each one hands back a JSON string that the agent has to parse. smart_pipe chains several of these steps under templates named research, read and remember, and isn't meant for running just one step. Bundled skills cover routing (smartgate-workflows), multi-source research, reading a single known page, team memory, and usage reporting.
Connecting requires an SMARTGATE_API_KEY from the dashboard; without it the MCP handshake never completes. All platforms point at the same address, https://smartgate.network/api/mcp.
What it helps with
- locate sources online and pull them in as Markdown
- drop near-duplicate hits from overlapping search results
- shrink a long document before it enters a model's context
- track and cap how many tokens tool calls are burning
- store team facts and pull them back up in later sessions
Example prompts for the agent
- Check my SmartGate token allowance with smart_budget_guard action=check
- Run smart_fetch on https://smartgate.network/docs/tools and walk me through what it says about budget limits, page fetching, and compliance logging
- Remember that our staging API rate limit is 100 requests per minute
How to install SmartGate
Platform CLI: remote server
claude mcp add --transport http smartgate https://smartgate.network/api/mcpPlatform CLI: remote server
codex mcp add smartgate --url https://smartgate.network/api/mcpConfig file
{
"mcpServers": {
"smartgate": {
"url": "https://smartgate.network/api/mcp"
}
}
}Config file
{
"servers": {
"smartgate": {
"type": "http",
"url": "https://smartgate.network/api/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http smartgate https://smartgate.network/api/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about SmartGate
How do I install SmartGate for Claude Code?
Run claude mcp add --transport http smartgate https://smartgate.network/api/mcp.
What does SmartGate do?
It's an MCP server that searches and reads pages, removes duplicate results, compresses text before it reaches a model's context, tracks token budget, and keeps a team memory across sessions.
Do I need an API key to use SmartGate?
Yes — an SMARTGATE_API_KEY from the dashboard is required, and the MCP connection won't complete without it.