Secure grip for your agent's secrets - security-hardened MCP gateway with proxy token architecture
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Pincer-MCP is a security-hardened Model Context Protocol (MCP) gateway that eliminates the "Lethal Trifecta" vulnerability in agentic AI systems. By acting as a stateless intermediary, Pincer ensures agents never see your real API keys.
Current AI agents store long-lived API keys in plain-text .env files or local databases. If compromised via prompt injection or host intrusion, attackers gain direct access to your:
Pincer implements a "blindfold" security model:
pxr_abc123...)gemini_generate: Secure Google Gemini API calls.openai_chat: Chat completions with OpenAI GPT models (gpt-4o, gpt-4-turbo, gpt-3.5-turbo, etc.).openai_list_models: List all available OpenAI models.openai_compatible_chat: Chat completions with any OpenAI-compatible API (Azure OpenAI, Ollama, vLLM, etc.).openai_compatible_list_models: List models from custom OpenAI-compatible endpoints.claude_chat: Chat completions with Anthropic Claude models (Claude 3.5 Sonnet, Opus, Haiku).openrouter_chat: Unified API access to 100+ models from multiple providers (OpenAI, Anthropic, Google, Meta, etc.).openrouter_list_models: List all available models across OpenRouter providers.openwebui_chat: OpenAI-compatible interface for self-hosted LLMs.openwebui_list_models: Discover available models on an OpenWebUI instance.gpg_sign_data: Sign data or files using a GPG/PGP private key stored in Pincer's vault. (Keyless Execution β agent never sees the key)gpg_decrypt: Decrypt PGP-encrypted data using a vault-stored private key.(More callers coming soon!)
Option 1: Global Installation (Recommended)
Option 2: Local Development
Store multiple keys for the same tool and assign them to different agents:
Result: clawdbot uses key1, mybot uses key2 - perfect for rate limiting or cost tracking!
Give your agent the proxy token (not the real API key):
When storing secrets, you must use the correct secret name for each tool. See the Tool Mappings Guide for a complete reference.
When you run pincer agent authorize myagent gemini_generate, Pincer will inject the gemini_api_key secret when that tool is called.
Your agent sends requests with the proxy token in the body:
Pincer maps the proxy token to the real API key and executes the call securely.
Tier 1: Master Key (OS Keychain)
Tier 2: Encrypted Store (SQLite)
~/.pincer/vault.dbsecrets: Real API keys (AES-256-GCM encrypted)proxy_tokens: Proxy token β Agent ID mappingsagent_mappings: Agent ID β Tool authorizationPincer is built for enterprise-grade security:
pxr_ tokens; they never touch real credentials.Every tool call is logged to ~/.pincer/audit.jsonl with both UTC and Local timestamps, plus character counts and estimated token usage:
Token Estimation: Pincer automatically estimates token usage using a 4:1 character-to-token ratio (~4 characters per token average). This provides consistent cost tracking across all AI providers without relying on provider-specific APIs.
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
BSL 1.1 (Business Source License) β See LICENSE for details. Converts to Apache 2.0 on 2028-04-01.
Built with β€οΈ for a more secure AI future.
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/pincer)<a href="https://allmcps.com/mcp/pincer"><img src="https://allmcps.com/api/badge/pincer?style=directory" alt="Pincer on AllMCPs" /></a>