SmartGate

Hosted MCP: search, fetch, compress, dedup, budget, memory, pipelines. Not an LLM proxy.

호스팅형 MCP 서버

npx add-mcp 'https://smartgate.network/api/mcp'

Claude Code, Codex, Cursor 등에 설치됩니다

문서

SmartGate

SmartGate — the intelligence layer between AI and the world

AI Intelligence Layer — not another assistant or LLM proxy.

Official SmartGate plugin for Cursor, Claude Code, claude.ai, and Cowork.

SmartGate is the intelligence layer between AI and the world — helping you research, understand, remember, and act before runaway tool traffic becomes a surprise invoice.

On the surface: Smart Research, decisions, knowledge, and monitoring — no MCP required. Under the hood: an MCP-native algorithmic gateway with five capabilities (Research, Context, Memory, Control, Pipeline) powered by seven smart_* primitives. Human interface (Web) + agent interface (MCP/API). Not a chatbot, search app, or model router. The host model stays on the client.

Plugin mark for Cursor Marketplace is the 1:1 shield assets/logo.png. The banner is the official site OG card.

What is SmartGate MCP

Don't rebuild research infrastructure for every agent. Connect once over Streamable HTTP; the gateway fetches, searches, compresses, deduplicates, remembers, and hard-caps tool traffic before it reaches your model provider.

CapabilityWhat the agent doesProduct
ResearchFind sources, then read pages as MarkdownTraffic Customs
ContextDedup overlapping hits, then compressToken Control
MemoryPersist and recall team facts across sessionsFeatures
ControlCheck, count, and cap token budgetToken Control
PipelineRun research / read / remember as one jobTools

Install

Mint a key at Dashboard → API Keys (sk_live_…). Never paste the key into chat or commit it.

Official MCP Registry name: network.smartgate/smartgate. Same endpoint: https://smartgate.network/api/mcp. The listing is metadata only — you still need the Dashboard Bearer key.

Cursor

  1. Install SmartGate from the Cursor Marketplace, or import this repo under Cursor Dashboard → Plugins → Team Marketplaces → Import from Repo: https://github.com/smartgate-network/smartgate-workflows
  2. Open Plugins → SmartGate → Configure and set SMARTGATE_API_KEY
  3. Restart Cursor (or reload the window) so the MCP handshake runs again

Claude (claude.ai / Cowork / Claude Code)

  1. Add SmartGate from Anthropic's directory after it is listed, or load this repo locally: claude --plugin-dir .
  2. When Claude prompts for plugin configuration, set SMARTGATE_API_KEY. In Claude Code you can also run /plugin configure @smartgate
  3. Confirm the connector: on claude.ai / Cowork use the plugin's Connectors tab; in Claude Code run /mcp and look for plugin:smartgate:smartgate

Gemini CLI

gemini extensions install https://github.com/smartgate-network/smartgate-workflows

Set SMARTGATE_API_KEY when the CLI prompts. Manifest: gemini-extension.json.

First run

After the MCP server shows as connected, try:

Check my SmartGate token allowance with smart_budget_guard action=check.
smart_fetch https://smartgate.network/docs/tools then summarize Token Control, Traffic Customs, and Audit.
Remember: our staging API rate limit is 100 req/min

Live tools/list schemas (purpose, params, returns) come from the hosted server, not this repo. Names are smart_* — there is no smartgate_compress_context. Full reference: Docs → Tools.

Tools (reviewer cheat sheet)

Every tool returns a JSON string. Parse it before synthesizing. Do not invent page content.

ToolRequiredOptionalReturns
smart_searchquerymax_results (1–50, default 10)Search hits (results[].url, snippet)
smart_fetchurl (http/https)timeout (default 30s)Page markdown, title, url
smart_deduptexts (string[])threshold (0–1, default 0.9)Kept / removed indices or deduped texts
smart_context_gatetextratio (default 0.5), purposecompressed, ratio, token counts
smart_budget_guardaction: check | count | recordtext / tokens by actionAllowance, usage, or record ack
smart_memoryaction: add | search | get | deletetext (add), query (search), memory_id (get/delete)Shape depends on action
smart_pipetemplate or stepsquery, url, textPer-step results. Templates: research, read, remember. Not for a single step.

Skills shipped with this plugin:

SkillRoutes
smartgate-workflowsPick the right workflow
smartgate-research-agentMulti-source research
smartgate-deep-readingOne known URL
smartgate-remember-and-recallTeam memory
smartgate-usage-reportQuota / usage (no content)

Configure

Cursor Marketplace: Plugins → SmartGate → Configure → SMARTGATE_API_KEY. Cursor reads mcp.json (${SMARTGATE_API_KEY}).

Claude directory / Claude Code: /plugin configure @smartgate → SMARTGATE_API_KEY. Claude reads .mcp.json (${user_config.SMARTGATE_API_KEY}). Do not commit a real key.

Manual / reviewer fallback (only if you are not using the plugin): merge this into ~/.cursor/mcp.json (user) or <project>/.cursor/mcp.json (project), then restart Cursor. Replace the placeholder. If the plugin is also installed, delete this block so tools are not duplicated.

{
  "mcpServers": {
    "smartgate": {
      "type": "streamable-http",
      "url": "https://smartgate.network/api/mcp",
      "headers": {
        "Authorization": "Bearer sk_live_REPLACE_WITH_YOUR_KEY",
        "X-SmartGate-Agent-Platform": "cursor"
      }
    }
  }
}

Claude Code / claude.ai fallback (only if the plugin is not installed). Same endpoint, Claude's http type, and ${user_config.SMARTGATE_API_KEY} in the plugin copy of .mcp.json:

{
  "mcpServers": {
    "smartgate": {
      "type": "http",
      "url": "https://smartgate.network/api/mcp",
      "headers": {
        "Authorization": "Bearer sk_live_REPLACE_WITH_YOUR_KEY",
        "X-SmartGate-Agent-Platform": "claude"
      }
    }
  }
}

Hosted endpoint: POST https://smartgate.network/api/mcp (Streamable HTTP). Mint a key at Dashboard → API Keys. If you also add the standalone SmartGate MCP connector from the directory, use the same URL so tools are not duplicated.

Data handling

This plugin does not run fetch, search, compression, or memory inside Cursor or Claude. Those steps run on the hosted gateway at https://smartgate.network/api/mcp. The host model (Cursor or Claude) stays on the client.

  • In transit: HTTPS + Authorization: Bearer. The plugin ships no secrets. You set SMARTGATE_API_KEY in the host's plugin configure dialog (Cursor variables, or Claude userConfig).
  • At rest: we store a hash of API keys, not the raw secret. Teams are isolated by the key's tenant. Do not pass a foreign team_id.
  • What is logged: tool name, timestamp, token counts, and for fetch the requested URL. Retention: Free 7 days · Pro 30 · Teams 90 · Enterprise 180. See Security and Logs.
  • Compression / dedup: smart_context_gate (LLMLingua) and smart_dedup (SemHash) run on SmartGate servers, not locally. They shrink or drop overlapping text; they are not a PII redaction product. Do not put secrets or credentials in tool arguments or memory.
  • What we do not do: we are not an LLM proxy and do not train a public chatbot on your prompts as a consumer product. Billing card data is handled by Paddle, not stored by us.

Privacy Policy · Terms · SECURITY.md · support@smartgate.network

Troubleshooting

SymptomCheck
401 UnauthorizedSMARTGATE_API_KEY is set in the host's plugin configure dialog; key is sk_live_…
Tools emptyRestart Cursor, or in Claude Code run /mcp and reconnect plugin:smartgate:smartgate
405 on GETEndpoint is POST /api/mcp, not GET SSE
Duplicate toolsRemove a hand-written smartgate block from ~/.cursor/mcp.json or ~/.claude.json

Workflow source

workflows/ is the scenario source (YAML + Markdown). skills/ is the committed plugin pack, generated by:

pip install jsonschema pyyaml
python scripts/install-skills.py --client cursor --target skills --force
python tests/validate.py
WorkflowDescription
research-agentsearch → fetch → dedup → compress
deep-readingfetch → compress
remember-and-recallteam memory
usage-reportbudget check / count

Manual skill install (no Marketplace): see clients/README.md.

Maintainers

SmartGate · support@smartgate.network

License

MIT