Show HN: MCPGod: Fine-grained control over MCP clients, servers, and tools
github.comHey everyone, I've wanted an easy way to control which mcp server tools are available to clients. So for example, I might want a gmail server to only expose the read tool (but not send, delete etc).
I figured if I create a cli for spawning mcp servers, I could intercept the stdin, stdout, stderr etc and modify what the clients see when they are making calls to list tools, resources, and prompts.
Well it worked!
In the initial version you can easily add a server to claude with a safe list of tools:
npx -y mcpgod add @modelcontextprotocol/server-everything --client claude --tools=echo,add
Now when you load Claude Desktop, it will only discover the echo and add tools from that server. It's a nice way to keep the agents in line :)
You can check it out here: https://github.com/mcpgod/cli
It will also log everything that a client is doing to ~/mcpgod/logs.
Currently it only has support for claude, but it will be easy to add cursor, cline, windsurf, etc.
With the `tools` command you can list all of a servers tools, and even call a tool directly from the command line, which is pretty fun.
I was thinking it would be nice to create a UI for it to easily enable/disable servers and tools for each client, inspect logs, view analytics, etc.
Thanks for reading!
This is nice! I was thinking of writing something like this myself. One thing I ran into though is that Claude Desktop can't connect to the server-everything with the command you listed. This is in the server logs:
Also, there's no logs for ~/mcpgod for me (that folder doesn't even exist)Thanks!!
Hrm, re that error: What does “god --version” say?
The log might not show up until you get a successful connection. I’ll look into that.
Thanks for trying it out!
I removed the original config and ran the following:
Same error and log occuredI’ve made the mistake of typing “--tools echo” before instead of “--tools=echo”, just in case that was your error too.
I have seen a few of these tools and yet to see usefulness further than not having to edit config manually for each client. Wishlist for something I would use:
- Always run MCP in a sandbox
- If I am gonna browse open source MCP and try them out casually, I need to control permission better than approving tool calling blindly. I prefer to auto approve all calls but control permission for directory access (if run outside of sandbox), or network calls based on configurable criteria
- An UI for tracking of calls