
Lintbase Mcp
io.github.Madia333由 GitHub 账号 Madia333 发布v0.1.3更新于 Oct 24, 2026
Real-time Firestore schema context for AI coding agents. Stop hallucinating field names.
概览
让 AI 编程助手读取 Firestore 数据库的真实结构,并在写代码前检查结构漂移、安全、性能和成本问题。
- 可以做什么
- 把 AI 编程助手连接到 Firestore 项目,使其能查看真实的字段名、类型和出现比例,而不是靠猜测。工具包括 lintbase_get_schema(查看单个或全部集合的结构)、lintbase_scan(完整审计,覆盖结构、安全、性能、成本四类分析器并给出 0-100 风险分)以及 lintbase_get_issues(按严重级别、集合或规则前缀筛选问题)。此外还提供一个可选的 agent skill 文件,让助手自动先检查结构。
- 适用场景
- 适合在助手编写或重构 Firestore 代码时使用,让代码基于真实结构而不是编造的字段名。也适合在部署前检查结构漂移、敏感集合、过大文档或高成本集合。
- 运行要求
- 以 stdio 本地进程运行,通常通过 npx 启动 npm 包 lintbase-mcp,因此需要 Node.js。需要提供目标项目的 Firebase 服务账号 JSON 密钥,并需要访问 Firestore 的网络连接。未声明任何环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 Lintbase Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
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
来源:packages/lintbase-mcp/README.md,提交 f0c53a5
工具
0版本历史
1- v0.1.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分