Skip to main content
ClaudeWave

Model Context Protocol (MCP) Server for Firebird (2.5 to 5.0) — Multi-database per project, PLAN analysis, RDB$ metadata & AI integration.

MCP ServersRegistry oficial0 estrellas0 forks● PythonMITActualizado today
ClaudeWave Trust Score
95/100
✓ Verified
Passed
  • ✓Open-source license (MIT)
  • ✓Actively maintained (<30d)
  • ✓Clear description
  • ✓Topics declared
  • ✓Documented (README)
Last scanned: 10/17/2026
Install in Claude Code / Claude Desktop
Method: UVX (Python) · firebird-mcp
Claude Code CLI
claude mcp add firebird-mcp -- uvx firebird-mcp
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "firebird-mcp": {
      "command": "uvx",
      "args": ["firebird-mcp"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Package name inferred from the repository name. Verify it exists on PyPI, or clone https://github.com/lucasgabriel0802/firebird-mcp and follow its README.
Casos de uso

Resumen de MCP Servers

# Firebird MCP Server 🔥

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![MCP Standard](https://img.shields.io/badge/MCP-2024--11--05-green.svg)](https://modelcontextprotocol.io)
[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
[![Firebird 2.5 to 5.0](https://img.shields.io/badge/Firebird-2.5%20%7C%203.0%20%7C%204.0%20%7C%205.0-red.svg)](https://www.firebirdsql.org)

> 🌐 **Language / Idioma:** **English** | [Português (Brasil)](README.pt-BR.md)

Open-source **Model Context Protocol (MCP)** server for **Firebird Database**, developed for free and independent community use with support for all major releases (**Firebird 2.5, 3.0, 4.0, and 5.0**).

Built according to the **open industry standards for MCP servers (stdio / JSON-RPC 2.0)**, ensuring turnkey compatibility with **any AI client or IDE**: **Google Antigravity IDE**, **Cursor**, **Claude Desktop**, **VS Code (with Cline / Roo Code / Copilot extensions)**, **Windsurf**, **Zed**, and CLI tools.

---

## 🎯 Key Highlights

1. **Pure Python Wire Protocol (Zero DLL Dependencies)**:
   - Connects directly over TCP (default port `3050`) using pure Python (`firebirdsql`).
   - Requires no native C/C++ compilation and eliminates the need to install `fbclient.dll` (Windows) or `libfbclient.so` (Linux) on the host running the AI client or IDE.
   - Fully compatible with legacy authentication (`Legacy_Auth` in FB 2.5) as well as modern pluggable SRP authentication in FB 3.0, 4.0, and 5.0.
2. **Multi-Database Support per Project**:
   - Allows a single project workspace to declare and manage multiple databases (e.g., `main`, `audit_logs`, `staging`), switching dynamically via chat prompts or tool arguments.
3. **Workspace Auto-Discovery (`.firebird-mcp.json`)**:
   - Automatically detects database configuration files placed at the root of your project or repository.
4. **Execution Plan & Performance Analysis (`PLAN`)**:
   - Compiles queries to extract the Firebird optimizer's execution plan (`PLAN`) without scanning entire datasets, detecting unindexed full-table scans (`NATURAL SCAN`) and memory/disk sorting bottlenecks (`SORT`).
5. **Strict Query Safety & MVCC Best Practices**:
   - `fb_query` enforces read-only operations (`SELECT`), guarding against accidental data modification.
   - Commits read transactions immediately upon completion, preventing **OAT (*Oldest Active Transaction*)** stalls, garbage collection starvation, and runaway `.fdb` database file growth.
6. **Broad System Catalog Mapping**:
   - Comprehensive introspection of Firebird system catalog tables (`RDB$`), supporting types across versions: `BOOLEAN` (FB3+), `INT128`, `DECFLOAT(16/34)`, `TIMESTAMP WITH TIME ZONE` (FB4+), `BLOB SUB_TYPE TEXT/BINARY`, and index selectivity (`RDB$STATISTICS`).

---

## 🗄️ Multi-Database & Per-Project Configuration

Real-world production codebases (such as enterprise ERPs in Delphi, Laravel, or Python) frequently require:
- Different databases per project/workspace.
- Multiple databases within the same project (e.g., operational database `ERP_DATA.FDB` and audit trail `AUDIT_LOGS.FDB`).

### Where and How to Configure Databases:

Firebird MCP provides two flexible organization patterns:

#### Option A (Recommended Default): Central Global Catalog (`~/.firebird-mcp.json`)
Instead of scattering `.firebird-mcp.json` files across every repository, maintain a **single central catalog** in your user home directory (`~/.firebird-mcp.json` on Linux/macOS or `C:\Users\YourUser\.firebird-mcp.json` on Windows).

In this catalog, you register all databases on your machine and use the `"projects"` property to specify which projects/repositories use each database:

```json
{
  "default": "erp_main",
  "databases": {
    "erp_main": {
      "host": "localhost",
      "port": 3050,
      "database": "/var/data/ERP_DATA.FDB",
      "user": "SYSDBA",
      "password": "masterkey",
      "charset": "WIN1252",
      "description": "Primary ERP operational database",
      "projects": ["web_projects", "erp-desktop"],
      "tags": ["erp", "financial", "sales"]
    },
    "erp_audit": {
      "host": "localhost",
      "port": 3050,
      "database": "/var/data/AUDIT_LOGS.FDB",
      "user": "SYSDBA",
      "password": "masterkey",
      "charset": "WIN1252",
      "description": "Secondary database for audit trails and logs",
      "projects": ["web_projects", "erp-desktop"],
      "tags": ["audit", "logs", "security"]
    },
    "pos_store": {
      "host": "192.168.1.10",
      "port": 3050,
      "database": "C:\\POS\\STORE.FDB",
      "user": "SYSDBA",
      "password": "masterkey",
      "charset": "WIN1252",
      "description": "Store front checkout database",
      "projects": ["pos-vcl"],
      "tags": ["pos", "cashier"]
    },
    "shared_staging": {
      "host": "localhost",
      "port": 3050,
      "database": "/data/STAGING.FDB",
      "user": "SYSDBA",
      "password": "masterkey",
      "charset": "WIN1252",
      "description": "Shared staging/test database accessible across all projects",
      "projects": []
    }
  }
}
```

> **Tip on Shared Databases:** Databases with an empty `"projects": []` array or `"*"` are treated as global shared databases and remain visible across all workspaces.

#### Option B: Local Project Configuration (`.firebird-mcp.json`)
If you prefer a repository to isolate its own credentials, place a `.firebird-mcp.json` file in the project root. The MCP checks for a local project file first; if present, it has **absolute precedence** over the global catalog.

---

### How the Agent Interacts with Databases:
1. **Automatic Workspace Context (CWD):**
   - When you open a workspace (e.g., `/home/lucas/web_projects`), the MCP automatically resolves the active project and filters databases matching that project.
   - **Single Database in Project:** The MCP auto-selects the database without asking unnecessary questions.
   - **Multiple Databases in Project (e.g., main and audit):** For generic commands (e.g., *"run a select on orders"*), the MCP halts and asks which database to use.
2. **Direct Investigation Targeting (Zero Friction):**
   - If you mention the database in your prompt (e.g., *"investigate bug on audit database"* or *"check table X on pos"*), the agent/MCP resolves the alias immediately and connects **without asking confirmation questions**.
3. **Smart Approximate Search:**
   - Switch databases using `fb_use_database("audit")` — the MCP matches exact names, substrings (e.g., `erp_audit`), and associated tags.
4. **⚠️ Rigid Safety Rule: Mandatory Double Confirmation for DDL and Data Manipulation (DML):**
   - Structural commands (`CREATE`, `ALTER`, `DROP`, `RECREATE`) and data mutation commands (`INSERT`, `UPDATE`, `DELETE`, `EXECUTE PROCEDURE`) are **NEVER** executed directly without prior explicit user consent.
   - The assistant must present the exact SQL/DDL statement, explain its technical purpose, detail the impact (affected rows/tables, lock risks, irreversibility), and request confirmation.
   - The MCP server blocks execution with an error unless the `confirmed=True` parameter is passed following the user's explicit affirmative response.

---

## 🛠️ Available MCP Tools

### Database & Connection Management
| Tool | Parameters | Description |
| :--- | :--- | :--- |
| `fb_create_config` | `database`, `alias`, `host`, `port`, `user`, `password`, `charset`, `description`, `projects`, `tags`, `filepath` | Creates and saves Central Global Catalog (`~/.firebird-mcp.json`) or local file with project tags. |
| `fb_list_databases` | `project_filter` *(optional)* | Lists all databases in catalog, highlighting matches for the active project. |
| `fb_use_database` | `alias` | Switches the active database for the current session (with smart match by name, substring, or tag). |
| `fb_configure_database` | `alias`, `database`, `host`, `port`, `user`, `password`, `charset`, `description`, `projects`, `tags`, `set_as_default`, `save_to_file` | Registers or updates a connection with projects/tags dynamically and persists to file. |
| `fb_reload_config` | `config_path` *(optional)* | Reloads the catalog from global or local file. |

### Schema & Metadata Introspection
| Tool | Parameters | Description |
| :--- | :--- | :--- |
| `fb_list_tables` | `db_alias` *(optional)* | Lists all user tables (filters out `RDB$` system tables). |
| `fb_list_views` | `db_alias` *(optional)* | Lists all registered user views. |
| `fb_list_procedures` | `db_alias` *(optional)* | Lists all user Stored Procedures. |
| `fb_list_generators` | `db_alias` *(optional)* | Lists all user Generators / Sequences. |
| `fb_inspect_table` | `table_name`, `db_alias` *(optional)* | Returns column definitions, precise data types, PK/FK constraints, and indices with real selectivity (`RDB$STATISTICS`). |

### Performance Analysis & Execution
| Tool | Parameters | Description |
| :--- | :--- | :--- |
| `fb_explain_plan` | `sql`, `db_alias` *(optional)* | Compiles the query in the engine, extracts the `PLAN`, highlights `NATURAL SCAN` warnings, and suggests indexing strategies. |
| `fb_query` | `sql`, `limit` (default 50, max 1000), `db_alias` *(optional)* | Executes read-only `SELECT` queries with safety guards and immediate transaction commits. |
| `fb_execute_dml` | `sql`, `db_alias` *(optional)*, `confirmed` (default `false`) | Executes explicit `INSERT`, `UPDATE`, `DELETE`, or `EXECUTE PROCEDURE` statements. Requires mandatory double confirmation (`confirmed=True`). |
| `fb_execute_ddl` | `ddl`, `db_alias` *(optional)*, `confirmed` (default `false`) | Executes structural DDL statements (`CREATE INDEX`, `ALTER TABLE`, etc.) with explicit commit. Requires mandatory double confirmation (`confirmed=True`). |
| `fb_database_health` | `db_alias` *(optional)* | Audits database health via `MON$` tables (ODS version, page size, active attachments, and OAT-to-Next-Transaction gap). |

---

## 💻 
ai-agentsdatabasefastmcpfirebirdfirebird-databasefirebird-mcpfirebird-sqlfirebirdsqlmcpmcp-servermodel-context-protocol

Lo que la gente pregunta sobre firebird-mcp

¿Qué es lucasgabriel0802/firebird-mcp?

+

lucasgabriel0802/firebird-mcp es mcp servers para el ecosistema de Claude AI. Model Context Protocol (MCP) Server for Firebird (2.5 to 5.0) — Multi-database per project, PLAN analysis, RDB$ metadata & AI integration. Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-10-17.

¿Cómo se instala firebird-mcp?

+

Puedes instalar firebird-mcp clonando el repositorio (https://github.com/lucasgabriel0802/firebird-mcp) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar lucasgabriel0802/firebird-mcp?

+

Nuestro agente de seguridad ha analizado lucasgabriel0802/firebird-mcp y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene lucasgabriel0802/firebird-mcp?

+

lucasgabriel0802/firebird-mcp es mantenido por lucasgabriel0802. La última actividad registrada en GitHub es del 2026-10-17, con 0 issues abiertos.

¿Hay alternativas a firebird-mcp?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega firebird-mcp en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: lucasgabriel0802/firebird-mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/lucasgabriel0802-firebird-mcp)](https://claudewave.com/repo/lucasgabriel0802-firebird-mcp)
<a href="https://claudewave.com/repo/lucasgabriel0802-firebird-mcp"><img src="https://claudewave.com/api/badge/lucasgabriel0802-firebird-mcp" alt="Featured on ClaudeWave: lucasgabriel0802/firebird-mcp" width="320" height="64" /></a>

Más MCP Servers

Alternativas a firebird-mcp