Frequently Asked Questions¶
Common questions about LeanProxy-MCP.
General¶
What is LeanProxy-MCP?¶
LeanProxy-MCP is a lightweight CLI proxy that sits between your IDE and MCP servers. It acts as a "Token Firewall" - reducing token consumption and redacting sensitive data (API keys, secrets, PII) before it reaches LLM providers.
Why do I need LeanProxy-MCP?¶
- Security: Automatically redacts secrets, API keys, and PII from prompts
- Cost Optimization: Reduces token usage by removing boilerplate and sensitive data
- Centralized Management: Manage all MCP servers from one configuration
- Shadow Manifesting: Automatically merges global and project MCP configurations
What IDEs support LeanProxy-MCP?¶
- Claude Desktop
- Cursor
- OpenCode
- Windsurf
- Any IDE with MCP support
What languages/frameworks does it support?¶
LeanProxy-MCP is language-agnostic. It works with any MCP server regardless of the implementation language.
Installation¶
Where can I download the binary?¶
Download from GitHub Releases: https://github.com/mmornati/leanproxy-mcp/releases
Which platforms are supported?¶
| Platform | Architecture | Status |
|---|---|---|
| macOS | arm64 (Apple Silicon) | Supported |
| macOS | x86_64 (Intel) | Supported |
| Linux | x86_64 | Supported |
| Linux | ARM64 | Supported |
| Windows | x86_64 | Supported |
Do I need Go to build from source?¶
Yes, Go 1.25+ is required to build from source:
git clone https://github.com/mmornati/leanproxy-mcp.git
cd leanproxy-mcp
go build -o leanproxy-mcp .
How do I install on Windows?¶
Download the .exe from GitHub Releases and add to your PATH.
For PowerShell (replace VERSION with desired version, e.g., v0.5.2):
$VERSION = "VERSION"
Invoke-WebRequest -Uri "https://github.com/mmornati/leanproxy-mcp/releases/download/${VERSION}/leanproxy-mcp_windows_amd64.exe" -OutFile leanproxy.exe
Move-Item leanproxy.exe $env:LOCALAPPDATA\Microsoft\Windows\Tools\
Configuration¶
Where should I put the config file?¶
LeanProxy-MCP searches for config in this order:
--config <path>flag./leanproxy.yaml(project directory)~/.config/leanproxy/config.yaml(home directory)- Current directory
How do I enable/disable redaction?¶
# Disable
leanproxy-mcp bouncer disable
# Enable
leanproxy-mcp bouncer enable
Or via config:
bouncer:
enabled: false
Can I add custom redaction patterns?¶
Yes! Add to your config:
bouncer:
patterns:
- name: "my-secret"
type: "regex"
pattern: "MY_SECRET=[A-Za-z0-9]+"
replacement: "MY_SECRET=REDACTED"
What built-in patterns are available?¶
| Pattern | Description |
|---|---|
aws-access-key |
AWS Access Key IDs |
github-classic-pat |
GitHub Classic PATs |
github-fine-grained-pat |
GitHub Fine-grained PATs |
stripe-secret-key |
Stripe Secret Keys |
stripe-publishable-key |
Stripe Publishable Keys |
generic-api-key |
Generic API keys |
bearer-token |
JWT Bearer tokens |
env-var-value |
Environment variables |
Usage¶
How do I add an MCP server?¶
leanproxy-mcp server add myserver "npx -y @modelcontextprotocol/server-filesystem" "./"
How do I start the proxy?¶
# Start the proxy server
leanproxy-mcp serve
# Or add a server
leanproxy-mcp server add ...
How do I see token savings?¶
leanproxy-mcp savings
How do I generate a report?¶
leanproxy-mcp report --output report.md
Can I run in dry-run mode?¶
Yes! Preview without making changes:
leanproxy-mcp server add myserver "..." --dry-run
Troubleshooting¶
"command not found" error¶
Make sure LeanProxy is in your PATH:
# Verify installation
leanproxy-mcp version
# If not found, check installation
which leanproxy-mcp
# or
where leanproxy-mcp
Server won't start¶
-
Check if port is available:
lsof -i :8080 -
Check logs:
leanproxy-mcp serve --verbose
IDE cannot connect¶
-
Verify server is running:
leanproxy-mcp status -
Check IDE configuration matches the server format
Redaction not working¶
-
Verify bouncer is enabled:
leanproxy-mcp bouncer list-patterns -
Check config file is being loaded
Security¶
Is my data sent anywhere?¶
No. LeanProxy-MCP runs entirely locally. Your data never leaves your machine except to the MCP server you're proxying to.
Where is data stored?¶
- Config:
~/.config/leanproxy/ - Cache:
~/.cache/leanproxy/ - Logs: stdout or configured log file
Are my secrets safe?¶
Yes. The redaction engine runs locally and secrets are never logged or sent anywhere except when explicitly allowed.
Contributing¶
How do I contribute?¶
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
How do I report bugs?¶
Open an issue at: https://github.com/mmornati/leanproxy-mcp/issues
Need More Help?¶
- GitHub Issues: https://github.com/mmornati/leanproxy-mcp/issues
- GitHub Discussions: https://github.com/mmornati/leanproxy-mcp/discussions