mcp-tenant-isolation
MCP server by subodhkc Community
mcp-tenant-isolation is a static analysis scanner that checks source code for cross-tenant data leakage in multi-tenant SaaS and MCP server code. It runs 57 deterministic rules for SaaS engineering teams, MCP server developers and security teams.
Install mcp-tenant-isolation
Built from the published package, never by AI.
claude mcp add mcp-tenant-isolation -- npx -y mcp-tenant-isolationRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp-tenant-isolation": {
"args": [
"-y",
"mcp-tenant-isolation"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install mcp-tenant-isolation in Claude Desktop
{
"mcpServers": {
"mcp-tenant-isolation": {
"args": [
"-y",
"mcp-tenant-isolation"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-tenant-isolation": {
"args": [
"-y",
"mcp-tenant-isolation"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-tenant-isolation -- npx -y mcp-tenant-isolation{
"mcpServers": {
"mcp-tenant-isolation": {
"args": [
"-y",
"mcp-tenant-isolation"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install mcp-tenant-isolation in Antigravity CLI
gemini mcp add mcp-tenant-isolation npx -y mcp-tenant-isolationGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-tenant-isolation block.
About
mcp-tenant-isolation is a static analysis scanner that checks whether tenant isolation guards are present in source code. It covers 57 rules across database queries, API routes, cache keys, file storage, schema design, logging, and MCP server architecture. It works with TypeScript, JavaScript, Prisma, Drizzle, raw SQL, Next.js, Express, and Fastify.
Each rule is deterministic and produces a finding with the rule ID, file, line, missing guard, and a remediation hint. The scanner also runs as a local MCP server over stdio, so AI assistants such as Claude Desktop or Cursor can run scans on demand. It is aimed at SaaS engineering teams, MCP server developers, security teams, and AI agent developers.
Written from the project's README and checked against it.
Tools it gives your assistant
scan_tenant_isolationScans a project path and returns structured findings with completeness and coverage data.list_tenant_isolation_rulesReturns all 57 rules with metadata, filterable by category.explain_tenant_isolation_ruleReturns rule details, OWASP mapping, CWE IDs, and fix suggestions.suppress_tenant_isolation_findingAdds a suppression with reason, approver, controls, and expiry. Hidden unless write tools are enabled.
What you need
- Node.js 22 or later
- Docker (optional, alternative to Node.js)
Try asking
- Scan ./src for tenant isolation issues and list the findings.
- List the tenant isolation rules in the cache and session category.
- Explain the MCP-001 tool visibility scoping rule and how to fix it.
Good to know
- Static analysis only. It cannot verify runtime behavior or database-level enforcement.
- The suppression tool is hidden unless the server starts with --allow-write-tools.
- OWASP mappings are advisory and do not certify compliance.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mcp-tenant-isolation
All alternatives →Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.
Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.
Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.
A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner
Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.
Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.
Compare with Agentmesh MCP Proxy, Bla or Bla Agents
mcp-tenant-isolation: common questions
Does the MCP server send my code over the network?
The source says the MCP server runs locally via stdio transport with no hosting and no network exposure. Scan tools are read-only.
Can a clean scan prove my code is tenant safe?
No. The source says static analysis cannot verify runtime behavior, database-level enforcement, or dynamic tenant isolation. The scan output lists what was and was not checked.
Which MCP rules map to security frameworks?
MCP rules are mapped to the OWASP MCP Top 10 (2025). The source describes these mappings as advisory, for triage and reporting.
How do I install mcp-tenant-isolation?
In Claude Code run claude mcp add mcp-tenant-isolation -- npx -y mcp-tenant-isolation. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is mcp-tenant-isolation the official server?
mcp-tenant-isolation is a community project by subodhkc, not verified by a company domain.
Is mcp-tenant-isolation free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is mcp-tenant-isolation safe to use?
It scores 85 of 100. Grades: maintenance B, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mcp-tenant-isolation?
Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.
Does mcp-tenant-isolation work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
