
Lintbase Mcp
io.github.Madia333Published by GitHub account Madia333v0.1.3Updated Oct 24, 2026
Real-time Firestore schema context for AI coding agents. Stop hallucinating field names.
Overview
Lets an AI coding agent read a Firestore database's real schema and audit it for drift, security, performance, and cost issues before writing code.
- What you can do
- Connects an AI coding agent to a Firestore project so it can inspect actual field names, types, and presence rates instead of guessing them. Tools include lintbase_get_schema for one or all collections, lintbase_scan for a full audit with a 0-100 risk score across schema, security, performance, and cost analyzers, and lintbase_get_issues for filtered issue lists by severity, collection, or rule prefix. It also ships an optional agent skill file that prompts the agent to check the schema automatically.
- When to use it
- Useful when an assistant writes or refactors Firestore code and you want it grounded in the real schema rather than invented field names. Also suited to pre-deploy checks for schema drift, sensitive collections, oversized documents, or cost-heavy collections.
- Requirements
- Runs locally as a stdio process, typically launched with npx from the npm package lintbase-mcp, so Node.js is needed. A Firebase service account JSON key for the target project must be supplied, and the server needs network access to Firestore. No environment variables or headers are declared.
Installation
In SourceWeft
- Open Lintbase Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
lintbase-mcp
Give your AI coding agent real-time Firestore schema context — so it stops hallucinating field names.
[npm version] [npm downloads] [License: MIT] [MCP]
The Problem
When you ask Cursor, Claude, or Windsurf to write Firestore code, it guesses your schema.
The result: silent bugs, runtime crashes, and schema drift baked in by your AI assistant.
The Fix
lintbase-mcp is a Model Context Protocol server that connects your AI agent directly to your Firestore database. Before writing any code, the agent checks what's actually there.
No hallucinations. No drift. Ground-truth schema, every time.
Tools
🤖 Agent Skill
Install the LintBase Agent Skill into any project so your AI agent automatically uses LintBase before writing Firestore code — no prompting required:
This copies a SKILL.md file into .agent/skills/lintbase/ in your project. Cursor, Claude Code, Gemini CLI, and other MCP-compatible agents read this file on startup and follow its instructions automatically.
Same format as the Firebase official Agent Skills. ✅
Setup
You'll need a Firebase service account JSON key for your project.
Cursor
Add to .cursor/mcp.json in your project root:
Then in your conversation:
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Restart Claude Desktop and start a new conversation.
Windsurf
Add to your Windsurf MCP config:
Usage Examples
Once connected, your AI agent has three tools available. You can trigger them naturally in conversation or the agent will use them automatically when relevant.
Get the schema of a collection
Returns:
Run a full audit
Returns: Complete report with risk score, all issues across 4 analyzers (schema drift, security, performance, cost).
Check for errors before deploying
Check security issues only
Security
- Runs 100% locally — your service account key and Firestore data never leave your machine
- The MCP server runs as a local
stdioprocess spawned by your IDE - No data is sent to any LintBase servers during schema inspection
- The server only performs read operations on your Firestore database
Available Filters for lintbase_get_issues
Rule Reference
Related
- lintbase — The CLI tool. Run
npx lintbase scan firestore --key ./sa.jsonfor a full terminal report. - lintbase.com — Dashboard for teams: save scan history, track risk score over time, share reports.
License
MIT © Mamadou Dia
Source: packages/lintbase-mcp/README.md at commit f0c53a5
Tools
0Version history
1- v0.1.3LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts