flamerobin-mcp-server
flamerobin-mcp-server
A Model Context Protocol (MCP) server for Firebird databases intended for local use. It reads connection details from FlameRobin's fr_databases.conf so no extra configuration is needed — if you have FlameRobin set up with your Firebird databases, this server works out of the box.
Compared to mcpFirebird
This project | mcpFirebird | |
Credentials | Read automatically from FlameRobin's config — no setup required | Must pass |
Multi-database | All FlameRobin-registered databases available in one session | Single database per server instance |
Wire encryption | Supported (native Firebird .NET driver) | Not supported — requires |
Runtime | .NET 9 self-contained executable | Node.js / npm |
Schema introspection | Tables, views, procedures, triggers, generators, roles, FK/PK/constraints, execution plans, missing index analysis | Tables and basic schema |
DDL / DML / scripts | Yes — | SQL execution only |
Deployment | Local only — runs on your PC alongside FlameRobin | Cloud-deployable via Smithery, SSE/HTTP transports |
Related MCP server: MCP Firebird
Building
dotnet build FirebirdMcp.csprojPublishing a single self-contained executable
dotnet publish FirebirdMcp.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -o publish-singleThe output is publish-single\FirebirdMcp.exe. The publish-single\ folder is gitignored.
Claude Desktop configuration
Add to claude_desktop_config.json:
{
"mcpServers": {
"firebird": {
"command": "C:\\path\\to\\publish-single\\FirebirdMcp.exe",
"env": {
"Logging__LogLevel__Default": "None"
}
}
}
}Important: The
Logging__LogLevel__Default=Noneenv var is required. The server's startup log output is written to stdout, which Claude reads as part of the MCP handshake — any unexpected output causes Claude to fail to recognize the server.
Tools
Tool | Description |
| List all servers/databases registered in FlameRobin |
| List tables, views, or both — with optional regex filter |
| List stored procedures — with optional regex filter |
| List triggers — with optional regex filter |
| List generators/sequences with current values |
| List roles — with optional regex filter |
| Column definitions — supports |
| FK relationships for a table ( |
| PK, FK, UNIQUE, CHECK constraints for a table |
| PSQL source of a stored procedure |
| PSQL source of a trigger |
| SQL source of a view |
| Execution plan for a SELECT — shows index usage |
| Which columns lack indexes; optionally scoped to filter columns |
| ODS version, page size, dialect, etc. |
| Active connections to the database |
| Execute a SELECT — supports |
| Execute CREATE/ALTER/DROP and commit |
| Execute INSERT/UPDATE/DELETE and commit |
| Execute multiple semicolon-separated statements |
Available Tools
29 toolsanalyze_missing_indexesA
Report which columns on a table are covered by an active index (as the leading segment). Helps identify missing indexes on columns used in WHERE clauses or JOINs. Returns [{column, has_index, index, unique}].
Inputs: database (required), table (required), filterColumns.
count_rowsA
Return the row count for a table, optionally filtered by a WHERE clause. Use before run_query to gauge table size and decide whether to add a row limit. Returns {table, where, count}.
Inputs: database (required), table (required), where.
describe_procedureA
Return the input and output parameter signatures for a stored procedure without reading the full PSQL body. Use this to understand how to call a procedure. Call get_procedure_source only when you need the implementation. Returns {name, input_params:[{name,type}], output_params:[{name,type}]}.
Inputs: database (required), procedure (required).
describe_tableA
Return column definitions for a table or view. Prefer inspect_table when you also need constraints or FK relationships. Brief mode returns [{name, type, nullable}]. Full mode adds length, precision, scale, default_src, description. If unsure about column names or types, call this before writing any query or DML — do not guess schema.
Inputs: database (required), table (required), brief, filter.
execute_ddlA
Execute a single DDL statement (CREATE/ALTER/DROP TABLE, CREATE INDEX, etc.) and auto-commit. Before altering or dropping an existing object, call inspect_table or list_objects first to confirm structure. WARNING: DDL is irreversible — dropped tables and columns cannot be recovered. For multiple statements use execute_script. Returns 'DDL executed and committed.' on success.
Inputs: database (required), sql (required).
execute_dmlA
Execute a single INSERT, UPDATE, or DELETE statement and commit. If unsure about column names or constraints, call inspect_table first — do not guess schema. Throws and rolls back on error. For multiple statements use execute_script. Returns 'Done. Rows affected: N'.
Inputs: database (required), sql (required).
execute_scriptA
Execute multiple SQL statements separated by semicolons. Each runs in its own transaction. A failure on one statement does NOT roll back previously committed statements — there is no global rollback. Returns one status line per statement: 'OK: ...' or 'ERROR: on: ...'. For a single statement prefer execute_ddl or execute_dml.
Inputs: database (required), sqlScript (required).
get_check_constraintsA
Return the CHECK constraint expressions defined on a table. GetTableConstraints only tells you a CHECK constraint exists — this tool returns the actual expression so you know what values are valid before writing INSERT or UPDATE statements. Returns [{constraint, expression}].
Inputs: database (required), table (required).
get_database_infoA
Return physical metadata for a Firebird database file. Returns {path, ods_major, ods_minor, page_size, pages, sql_dialect, sweep_interval}. ods_major/ods_minor indicate the Firebird engine version. sql_dialect: 1=legacy, 3=standard. pages × page_size = approximate file size in bytes.
Inputs: database (required).
get_distinct_valuesA
Return the distinct values of a column and how many rows contain each value, ordered by frequency. Use this to understand the range of values in a column before writing WHERE clauses or CHECK constraints. Returns [{value, count}] ordered by count descending.
Inputs: database (required), table (required), column (required), limit.
get_execution_planA
Return the query execution plan for a SELECT — shows which indexes Firebird will use. The query is prepared but never executed, so it is safe on large tables. Use before run_query to detect accidental full-table scans. Returns a plan string such as 'PLAN (TABLE NATURAL)' or 'PLAN (TABLE INDEX (IDX_NAME))'.
Inputs: database (required), sql (required).
get_foreign_keysA
Return foreign key relationships involving a table, in one or both directions. Returns [{direction, from_table, from_column, to_table, to_column, on_update, on_delete}]. Prefer inspect_table to get FKs alongside column and index information in one call. direction='out': what other tables this table depends on. direction='in': what other tables reference this table.
Inputs: database (required), table (required), direction, relatedTable.
get_next_generator_valueA
Advance a generator (sequence) by the given increment and return the new value. Use this to obtain a primary key value before inserting a row that uses a generator-based ID. WARNING: this permanently advances the generator — the consumed value cannot be reclaimed. Returns {generator, increment, value}.
Inputs: database (required), generator (required), increment.
get_procedure_sourceA
Return the full PSQL source body of a stored procedure. Call describe_procedure first if you only need to know parameters — not the implementation. Returns the raw PSQL text, or an error message if not found.
Inputs: database (required), procedure (required).
get_schema_summaryA
Return a compact overview of every user table in the database: column names with types, primary key, and foreign key counts. Use this as the first step when exploring an unfamiliar database — it replaces calling list_objects + describe_table on every table. Returns [{table, columns: ["NAME:TYPE"], pk: ["COL"], fk_out, fk_in}].
Inputs: database (required), filter, limit.
get_table_constraintsA
Return constraints on a table: PRIMARY KEY, FOREIGN KEY, UNIQUE, and CHECK. Returns [{constraint, type, index}]. Prefer inspect_table to get constraints alongside columns and FKs. For full FK details (referenced columns, ON DELETE/UPDATE rules) use get_foreign_keys instead.
Inputs: database (required), table (required), typeFilter.
get_trigger_sourceA
Return the full PSQL source body of a trigger. Returns the raw PSQL text, or an error message if not found.
Inputs: database (required), trigger (required).
get_view_sourceA
Return the SELECT statement that defines a view. Returns the view source SQL, or an error message if the view is not found.
Inputs: database (required), view (required).
inspect_tableA
Return full structural details for a single table or view in one call: column definitions, primary key, all indexes, and foreign keys in both directions. Prefer this over calling describe_table + get_table_constraints + get_foreign_keys separately. Returns {table, columns:[{name,type,nullable,default_src}], primary_key:[col], indexes:[{name,columns,unique}], foreign_keys_out:[{column,references,on_update,on_delete}], foreign_keys_in:[{from_table,from_column,on_column,on_update,on_delete}]}.
Inputs: database (required), table (required).
list_active_connectionsA
List active non-system connections to the database. Useful before running DDL or maintenance to check who is connected. Returns [{id, user, address, process, connected_at}].
Inputs: database (required), userFilter.
list_databasesA
List all Firebird servers and databases registered in FlameRobin. ALWAYS call this first — the 'key' in each result is required by every other tool's 'database' parameter. Returns [{key, host, port, path}].
Inputs: filter.
list_generatorsA
List user-defined generators (sequences / auto-increment counters) with their current values. Returns [{name, value}].
Inputs: database (required), filter, limit.
list_objectsA
List user tables, views, or both in a Firebird database. Returns object names. For a richer starting point use get_schema_summary instead. Pass individual names to inspect_table, get_table_constraints, get_foreign_keys, or get_view_source.
Inputs: database (required), type, filter, limit.
list_proceduresA
List all user-defined stored procedures. Returns procedure names. Call describe_procedure for parameter signatures, or get_procedure_source for the PSQL body.
Inputs: database (required), filter, limit.
list_rolesA
List all roles defined in the database. Roles group privileges and are granted to users.
Inputs: database (required), filter, limit.
list_triggersA
List all user-defined triggers, formatted as 'TRIGGER_NAME (on TABLE_NAME)'. To retrieve a trigger body, pass just the name (without the ' (on TABLE)' suffix) to get_trigger_source.
Inputs: database (required), filter, limit.
run_queryA
Execute a read-only SELECT query and return results as row objects. If unsure about column names or types, call describe_table or inspect_table first — do not guess schema. IMPORTANT Firebird SQL differences: use 'SELECT FIRST n' or 'ROWS n' to limit rows — 'LIMIT n' is invalid. String concatenation uses '||' not '+'. Returns [{column: value, ...}] per row.
Inputs: database (required), sql (required), maxRows, columns.
sample_tableA
Return a small sample of rows from a table without writing SQL. Use this to understand what real data looks like before writing queries or DML. Returns [{column: value, ...}] per row.
Inputs: database (required), table (required), rows.
search_schemaA
Search for tables or columns whose names match a pattern. Use this instead of listing all objects when you know part of a name — e.g. find every table containing 'ORDER', or every column named 'CUSTOMER_ID'. Returns {tables: ["NAME"], columns: [{table, column, type}]}.
Inputs: database (required), pattern (required), scope, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 29 tools
Every tool has a clearly distinct purpose. Overlapping tool pairs like describe_table/inspect_table and get_table_constraints/get_foreign_keys are well-differentiated by their descriptions, and no two tools perform the same function.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., analyze_missing_indexes, execute_dml, run_query). No mixing of styles or vague verbs.
29 tools is appropriate for a comprehensive database management server. The count covers schema exploration, data manipulation, execution, and administrative tasks without being bloated or thin.
The tool set covers the full lifecycle of database interaction: schema discovery (describe, inspect, list), DML/DDL execution, querying, constraint and index analysis, and administrative utilities. Missing features like user management are peripheral to the server's core purpose.
Maintenance
Related MCP Connectors
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Fillo MCP server — provision, scaffold, publish, and query forms from your coding agent.
Remote MCP server for full read/write access to a Zotero library
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides tools for connecting to and interacting with various database systems (SQLite, PostgreSQL, MySQL/MariaDB, SQL Server) through a unified interface.3-
- AlicenseBqualityAmaintenanceA server implementing Anthropic's Model Context Protocol (MCP) for Firebird SQL databases, enabling Claude and other LLMs to securely access, analyze, and manipulate data in Firebird databases through natural language.3273MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides read-only access to Firebird databases, enabling LLMs to inspect database schemas and execute read-only queries.8MIT
- FlicenseAqualityDmaintenanceMCP server for ChaosLimba — provides read-only access to the Romanian language learning platform's database via the Model Context Protocol.20-