Developer finds single MCP server silently exposes multiple API credentials to every tool
A developer discovered that their single FastMCP server, built with 8 tools handling both GitHub and DEV.to operations, loads all API credentials into one shared process environment at startup. This means every tool call — regardless of which API it actually uses — runs with full access to both sets of credentials simultaneously. The risk is not a coding bug but an architectural one: there is no process-level boundary preventing a tool from accessing credentials it has no business touching. The concern grows when tool inputs, such as article content passed to an update function, can originate from external or untrusted sources like scraped text or LLM-generated content. The author warns this mirrors the trust-boundary problem seen when multiple MCP servers share a single agent session, just compressed into a less visible single-file form.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in