Lintbase MCP Server

Real-time Firestore schema context for AI coding agents. Stop hallucinating field names.

Local serverstdioTypeScript

What is the Lintbase MCP server?

Real-time Firestore schema context for AI coding agents. Stop hallucinating field names. That is what the lintbase mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

Developers are constantly feeding context files to AI tools like Cursor, Windsurf, Copilot Workspace, and Claude Code. If your agent doesn't understand your real database schema, it writes code that fails in production.

  • 🤖 Stops AI Hallucinations — Generates exact schema, field presence rates, and types
  • 📐 Catches Schema Drift — CI protection with lintbase check against schema snapshots
  • 🔒 Security Context — Highlights missing rules or exposed PII before your AI writes queries
  • 💸 Cost Awareness — Prevents AI from writing unbounded queries on 2M+ document collections
  • 🍃 Universal NoSQL — Works effortlessly with Firestore and MongoDB

The tools it exposes

The server publishes 14 tools. What each one is for:

  • Firestore — npx lintbase scan firestore --key ./sa.json
  • MongoDB — npx lintbase scan mongodb --uri mongodb+srv://user:pass@cluster.mongodb.net/test
  • Rule — What it detects
  • no-auth-check — Collections readable/writable without auth
  • exposed-pii — Email, phone, SSN fields without encryption markers
  • world-readable — Documents with overly permissive security rules
  • large-collection — Collections with 100k+ docs and high read cost
  • unbounded-query — Queries without limit() that scan entire collections
  • missing-index — Filter combinations that fall back to full collection scans
  • debug-collection — Collections that look like temporary data that was never cleaned up
  • type-inconsistency — Field stored as different types across documents
  • missing-required-field — Field present in 90%+ of docs but absent in some

Getting it running

The server ships on npm as lintbase, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

How it compares

Among the database access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Lintbase's toolset — Firestore, MongoDB, Rule and 11 more — is a fair guide to whether it matches your workflow. It is maintained by Madia333; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Lintbase's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Lintbase.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
Firestorenpx lintbase scan firestore --key ./sa.json
MongoDBnpx lintbase scan mongodb --uri mongodb+srv://user:pass@cluster.mongodb.net/test
RuleWhat it detects
no-auth-checkCollections readable/writable without auth
exposed-piiEmail, phone, SSN fields without encryption markers
world-readableDocuments with overly permissive security rules
large-collectionCollections with 100k+ docs and high read cost
unbounded-queryQueries without limit() that scan entire collections
missing-indexFilter combinations that fall back to full collection scans
debug-collectionCollections that look like temporary data that was never cleaned up
type-inconsistencyField stored as different types across documents
missing-required-fieldField present in 90%+ of docs but absent in some
nullable-idReference fields that are sometimes null
deep-nestingDocument fields nested > 3 levels deep

How to install the Lintbase MCP server

{
  "mcpServers": {
    "lintbase": {
      "command": "npx",
      "args": ["-y", "lintbase"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use Lintbase to Firestore.
  • Use Lintbase to MongoDB.
  • Use Lintbase to Rule.

Frequently asked questions

It connects Lintbase to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (Firestore, MongoDB, Rule, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Lintbase directly.