Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
The AgentGateway Protocol β secure, scalable AI agent execution infrastructure.
When an AI agent can execute code, call APIs, or access files, it runs in a process. That process has an environment. That environment typically contains everything that can cause serious damage: LLM API keys, database credentials, AWS tokens.
The naive solution β run your agent on the same backend as your REST API β creates two problems at once:
identark solves both.
The SDK implements the AgentGateway Protocol β a clean interface between your agent logic and the outside world. Two implementations ship out of the box:
| Gateway | When to use | Credentials | History |
|---|---|---|---|
DirectGateway | Local development, CI evals | Your API key | In-memory |
ControlPlaneGateway | Production on IdentArk | Zero β none in the agent | Control plane DB |
Your agent code is identical in both environments. The switch is two lines.
Change two lines. Your agent logic is untouched.
Requirements: Python 3.10+
Using TypeScript? The parity SDK ships as the zero-runtime-dependency
identark npm package, with the same
AgentGateway contract and structured credential sessions.
IdentArk is designed from the ground up to work with any LLM provider, including those that keep your data inside the UK or EU. The AgentGateway Protocol decouples your agent logic from the inference provider β switching providers requires changing one line.
Install Ollama: brew install ollama && ollama pull llama3.2 && ollama serve
Mistral AI is a French company. All inference runs in EU data centres, subject to EU data protection law (GDPR). Use this when UK/EU data governance requirements prohibit sending inference traffic to US-based cloud providers.
See examples/ for complete runnable scripts.
Any class implementing these four async methods is a valid gateway:
Write your agent against the protocol. The implementation β local or production β is a runtime detail.
ControlPlaneGateway holds no API keys, database credentials, or cloud tokensinvoke_llm call returns cost_usd; get_session_cost() returns the running totalDirectGateway out of the boxpy.typed marker; works with mypy strict mode| Provider | Data residency | DirectGateway | GeminiGateway | ControlPlaneGateway |
|---|---|---|---|---|
| OpenAI (gpt-4o, gpt-4o-mini, β¦) | US | β | β | β |
| Anthropic (Claude models) | US | β | β | β |
| Google Gemini | Varies | β* | β | Roadmap |
| Mistral AI | Varies | β | β | β |
| Kimi / Moonshot | Varies | β* | β | β |
| Azure OpenAI | Configured Azure region | β* | β | β |
| AWS Bedrock | Configured AWS region | β | β | β |
| OpenRouter | Provider-dependent | β* | β | β |
| Ollama | Local π | β | β | Not a hosted route |
| Any OpenAI-compatible endpoint | Varies | β | β | β (custom endpoint) |
*Via an OpenAI-compatible client/base URL. Use GeminiGateway for native Gemini SDK features.
Full exception hierarchy: IdentArkError > GatewayError > ControlPlaneError > AuthenticationError | CostCapExceededError | SessionNotFoundError
Contributions are welcome. Please open an issue before submitting significant changes.
See CONTRIBUTING.md for full guidelines.
IdentArkChatModel)IdentArkLLM)invoke_llm_stream)IdentArkNode, IdentArkStreamNode)identark-cli for one-command control plane deploymentThe IdentArk SDK is licensed under the MIT License β free for any use, including commercial and closed-source projects. See LICENSE.
The IdentArk control plane (hosted service) is proprietary. The SDK works with any AgentGateway backend, including fully self-hosted ones.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/identark-gateway)<a href="https://allmcps.com/mcp/identark-gateway"><img src="https://allmcps.com/api/badge/identark-gateway?style=directory" alt="IdentArk Gateway on AllMCPs" /></a>