Mmcp.market

Tenant Isolation MCP server

by subodhkc·io.github.subodhkc/mcp-tenant-isolation·v2.0.0·4 stars

Static analysis scanner for MCP server code and multi-tenant SaaS applications.

A92/100grade A
What users say
No reviews yet
Be the first
Safety scan
A92/100

full report

Adoption
Growing

4 stars4.9k downloads/wk

Reviews

Write one

Nobody has reviewed Tenant Isolation yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Tenant Isolation tools (4, 1 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • explain_tenant_isolation_rule

    Get detailed explanation of a specific rule including description, required guards, compliance mappings, and remediation guidance.

  • list_tenant_isolation_rules

    List all 57 tenant isolation rules with IDs, titles, categories, and severity.

  • scan_tenant_isolationwrite action

    Run tenant isolation scan on a project. Returns findings with rule IDs, severity, file locations, and missing guards. The path must be within the allowed project root configured at server startup.

  • suppress_tenant_isolation_finding

    Add a suppression for a finding. Requires a concrete finding fingerprint, ruleId, documented approver identifier, reason, compensating controls, and an expiry (or a documented permanent exception). Only available when the server is started with --allow-write-tools. The path must be within the allowed project root.

Public scan report

scanner v0.1.9 · 2026-09-22 · same rubric, same numbers if you re-run it

no findings
  • Code scan48 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 21 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 92/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

Install Tenant Isolation in Claude Code, Cursor or VS Code

Runs npx -y mcp-tenant-isolation on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add mcp-tenant-isolation -- npx -y mcp-tenant-isolation
Add to Cursor

What the publisher says

From the Tenant Isolation repository's README, as published. We do not edit it. Read it on GitHub

mcp-tenant-isolation

Static analysis scanner for multi-tenant SaaS and MCP server code. 57 deterministic rules that catch cross-tenant data leakage before it reaches production.

What it does

If you build multi-tenant software, every query, every cache key, every file access, every API response needs to be scoped to the right tenant. Miss one, and Tenant A sees Tenant B's data. That's not a bug you want to find in production.

This scanner reads your source code and checks whether tenant isolation guards are present where they need to be. It covers 57 patterns 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.

The scanner also runs as an MCP server, so you can plug it into Claude Desktop, Cursor, or any MCP-compatible agent and have your AI assistant scan code on demand.

Who uses this

  • SaaS engineering teams who need to catch tenant isolation gaps before code ships
  • MCP server developers building tools that handle tenant-scoped data
  • Security teams who want tenant isolation checks in CI/CD
  • AI agent developers who want their agents to scan code for cross-tenant risks

Why this exists

General-purpose security scanners are not purpose-built for tenant isolation patterns. They catch SQL injection and XSS. They do not check whether your findMany query includes an organizationId filter. They do not check whether your MCP tool handler scopes tool visibility by tenant. They do not check whether your cache key includes a tenant prefix.

This scanner does exactly that. 57 rules, each checking for a specific tenant isolation pattern, each producing a finding with the rule ID, file, line, missing guard, and a remediation hint.

Every rule is deterministic. Given the same source code, the scanner produces the same findings. No machine learning, no probabilistic scoring. Static analysis has inherent limitations though. It cannot verify runtime behavior, database-level enforcement, or dynamic tenant isolation. The scan output includes a limitations field that lists what was and was not checked for each run.

Install

npm install -g mcp-tenant-isolation

# or use npx (no install needed)
npx mcp-tenant-isolation scan ./src

# or use Docker (no Node.js needed)
docker run --rm -v $(pwd):/code subodhkc/mcp-tenant-isolation scan /code/src

Requires Node.js 22 or later.

Quick start

mti scan ./src
mti scan ./src --format sarif --output results.sarif
mti scan ./src --format markdown --output TENANT-ISOLATION-REPORT.md
mti scan ./src --format ai --output findings.json
mti scan ./src --severity HIGH
mti rules                          # list all 57 rules
mti baseline                       # snapshot current findings for proof-of-fix tracking
mti init                           # create .mtirc.json with defaults

Demo

Rules

42 general multi-tenant rules

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Tenant Isolation: common questions

Is Tenant Isolation MCP server safe?
Yes, by our scan: it is graded A (92/100). Read the Tenant Isolation safety report
How do I install Tenant Isolation?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Tenant Isolation need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Tenant Isolation maintained?
The last commit was 42 days ago (2026-09-01). The latest release is v2.0.0.

More from subodhkc →