Skip to main content
MCP server CX Codex

mcp-tenant-isolation — Claude Code MCP server: how to install

mcp-tenant-isolation is a Claude Code MCP server that scans application code for cross-tenant data leaks. It detects missing tenant filters in database queries, caching layers, and tool handlers.

MIT ★ 5 updated 2026-11-01

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add mcp-tenant-isolation -- npx -y mcp-tenant-isolation
Open on GitHub

What mcp-tenant-isolation does

The server inspects multi-tenant software repositories to identify code paths that expose data across different customer boundaries. It uses 57 deterministic rules evaluated against an intermediate representation. The scanner parses TypeScript and JavaScript into syntax trees, inspects Prisma schemas, and traces data flows through Next.js, Express, or Fastify handlers.

Rules target unverified object lookups, raw SQL statements without tenant predicates, and shared cache stores. MCP-specific checks audit tool exposure filters, credential storage boundaries, and network binding to local addresses. These MCP rules align with the 2025 OWASP MCP Top 10 guidelines.

Static inspection cannot evaluate dynamic database row-level security or actual execution runtime behavior. Running the server locally requires Node.js version 22 or later.

What it helps with

  • detect database queries missing tenant organization filters
  • locate cache keys and storage paths lacking tenant prefixes
  • check MCP tool handlers for missing visibility boundaries
  • spot IDOR weaknesses in application routing
  • generate SARIF and Markdown scan reports for code review

Example prompts for the agent

  • Scan the ./src folder for multi-tenant data isolation gaps
  • Run a tenant isolation check and export findings as results.sarif
  • Inspect MCP tool handlers in this project for tenant scoping issues

How to install mcp-tenant-isolation

Platform CLI

claude mcp add mcp-tenant-isolation -- npx -y mcp-tenant-isolation

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about mcp-tenant-isolation

How do I install mcp-tenant-isolation in Claude Code?

Run claude mcp add mcp-tenant-isolation -- npx -y mcp-tenant-isolation.

What does mcp-tenant-isolation do?

It statically checks SaaS and MCP server source files against 57 deterministic rules to stop tenant data leaks across database queries, routing, and cache keys.

What is required to run mcp-tenant-isolation?

The scanner requires Node.js version 22 or higher for npx execution, or Docker. It does not require any external API keys or paid services.

Similar MCP servers

All MCP servers for Security →

Project sponsors

Companies that keep this analytics open