You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Avoid storing credentials in mcpproxy.json in plaintext #58
Right now, if you need things like API keys, hostnames, or anything else sensitive, you have to store it in plaintext in the config files. This means you can't easily store mcp_proxy.json in version control.
Thanks for raising this question - I’ve been thinking about it too.
The zalando/go-keyring library looks like a good fit for this purpose.
Rough plan:
Implement support for ${keyring:alias} in the config, using zalando/go-keyring to access OS keychains.
If mcpproxy cannot resolve a reference, display a “Fix secrets” badge in the tray.
Provide users with a way to manage secrets in the keyring. For now, the simplest approach is to add a CLI command:
mcpproxy secrets add|remove|update
In the future, I’d like to separate the tray UI app from the core mcpproxy daemon.
The core could then expose a RESTful API and an embedded Web UI frontend—similar to how Syncthing, Tailscale, or HashiCorp Consul handle it.
I believe this would create a friendlier user experience.
I don't think it's something that could be used as is, but maybe it's can be taken for inspiration? On one hand, it might be a simpler implementation to handle our own encryption than figuring out cross-platform integration, but on the other hand... it means being on the hook for correctly and securely managing the secrets 😬
changed the title [-]Avoid storing credentials in mcpproxy.json in cleartext[/-][+]Avoid storing credentials in mcpproxy.json in unencrypted[/+]on Sep 26, 2025
changed the title [-]Avoid storing credentials in mcpproxy.json in unencrypted[/-][+]Avoid storing credentials in mcpproxy.json in plaintext[/+]on Sep 26, 2025
Another pattern I've seen is using docker run --envfile path/to/env.
This doesn't solve the not storing in clear text, but it would allow keeping mcpproxy.json in version control without credentials in them. I've updated the title/body to reflect that.
@technicalpickles I have finished refactoring and working on new version with secrets support, based on zalando/go-keyring lib. An environment variable resolver has also been added.
~/Library/Application\ Support/mcpproxy/bin/mcpproxy secrets --help
Store, retrieve, and manage secrets using the operating system's secure keyring (Keychain on macOS, Secret Service on Linux, WinCred on Windows)
Usage:
mcpproxy secrets [command]
Available Commands:
del Delete a secret from the keyring
get Retrieve a secret from the keyring
list List all stored secrets
migrate Migrate plaintext secrets to secure storage
set Store a secret in the keyring
Flags:
-h, --help help for secrets
Global Flags:
-c, --config string Configuration file path
-d, --data-dir string Data directory path (default: ~/.mcpproxy)
--log-dir string Custom log directory path (overrides standard OS location)
--log-level string Log level (trace, debug, info, warn, error) - defaults: server=info, other commands=warn
--log-to-file Enable logging to file in standard OS location (default: console only)
Use "mcpproxy secrets [command] --help" for more information about a command.
Or Web UI
After installing and launching, click "Open Web Control Panel" in tray menu to open Web UI
This is an early version, so some minor features broken now, and Web UI will be changed
@algis-dumbris So can you just use env variables with this version? I don't necessarily want to use keychain. I am super excited to try this out. When is this slated to make it into a main release ?
You can use the ${env:…} resolver in both the args and env sections of the config, so you don’t have to store the raw value in the file itself.
Since you add it to the config, it will also appear in the Web UI on the Secrets page - making it easy to view
Activity
Dumbris commentedon Sep 14, 2025
Thanks for raising this question - I’ve been thinking about it too.
The
zalando/go-keyringlibrary looks like a good fit for this purpose.Rough plan:
${keyring:alias}in the config, usingzalando/go-keyringto access OS keychains.mcpproxycannot resolve a reference, display a “Fix secrets” badge in the tray.In the future, I’d like to separate the tray UI app from the core mcpproxy daemon.
The core could then expose a RESTful API and an embedded Web UI frontend—similar to how Syncthing, Tailscale, or HashiCorp Consul handle it.
I believe this would create a friendlier user experience.
technicalpickles commentedon Sep 22, 2025
Another tool in this space I came across is envie https://github.com/ilmari-h/envie
I don't think it's something that could be used as is, but maybe it's can be taken for inspiration? On one hand, it might be a simpler implementation to handle our own encryption than figuring out cross-platform integration, but on the other hand... it means being on the hook for correctly and securely managing the secrets 😬
[-]Avoid storing credentials in clear text[/-][+]Avoid storing credentials in mcpproxy.json in cleartext[/+][-]Avoid storing credentials in mcpproxy.json in cleartext[/-][+]Avoid storing credentials in mcpproxy.json in unencrypted[/+][-]Avoid storing credentials in mcpproxy.json in unencrypted[/-][+]Avoid storing credentials in mcpproxy.json in plaintext[/+]technicalpickles commentedon Sep 26, 2025
Another pattern I've seen is using
docker run --envfile path/to/env.This doesn't solve the not storing in clear text, but it would allow keeping mcpproxy.json in version control without credentials in them. I've updated the title/body to reflect that.
algis-dumbris commentedon Sep 26, 2025
@technicalpickles I have finished refactoring and working on new version with secrets support, based on zalando/go-keyring lib. An environment variable resolver has also been added.
-> prerelease binaries here
Example of config
Secrets can be added using CLI:
Or Web UI
After installing and launching, click "Open Web Control Panel" in tray menu to open Web UI
This is an early version, so some minor features broken now, and Web UI will be changed
technicalpickles commentedon Sep 26, 2025
Exciting! That's on the next branch right?
algis-dumbris commentedon Sep 27, 2025
yes, https://github.com/smart-mcp-proxy/mcpproxy-go/tree/next
chaleic commentedon Nov 9, 2025
@algis-dumbris So can you just use env variables with this version? I don't necessarily want to use keychain. I am super excited to try this out. When is this slated to make it into a main release ?
Dumbris commentedon Nov 9, 2025
@chaleic This already works in the current release.
ENV_TEST_VAR="env var test" mcpproxy serveYou can use the ${env:…} resolver in both the
argsandenvsections of the config, so you don’t have to store the raw value in the file itself.Since you add it to the config, it will also appear in the Web UI on the Secrets page - making it easy to view