Feedback

Firebird SQL MCP Server

@purodelphi Claim

Basic information

Runtime
TypeScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
purodelphi
Submitted by
Community
Quality
25
Stars
47

About Firebird SQL MCP Server

Firebird SQL empowers safe database access, protects from sql injection, and supports natural language queries with advanced security features.

Firebird SQL is a MCP server in the Databases category listed in the AddMCP.net directory, published by purodelphi. It exposes 30 tools, including execute-query, list-tables, describe-table, get-field-descriptions and more. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 47 GitHub stars. Source code is hosted on github.com. Related topics: analytics-data, community, database, databases, mcp-firebird.

Setup

{
    "mcpServers": {
        "mcp-firebird": {
            "command": "npx",
            "type": "stdio",
            "args": [
                "mcp-firebird",
                "--host",
                "localhost",
                "--port",
                "3050",
                "--database",
                "C:\\Databases\\example.fdb",
                "--user",
                "SYSDBA",
                "--password",
                "masterkey"
            ]
        }
    }
}

Firebird SQL MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "mcp-firebird": {
            "command": "npx",
            "type": "stdio",
            "args": [
                "mcp-firebird",
                "--host",
                "localhost",
                "--port",
                "3050",
                "--database",
                "C:\\Databases\\example.fdb",
                "--user",
                "SYSDBA",
                "--password",
                "masterkey"
            ]
        }
    }
}

Firebird SQL MCP Server tools

  • execute-query — Executes a SQL query in the Firebird database. Uses FIRST/ROWS for pagination.
    sql:string*, params:array
  • list-tables — Lists all user tables in the current Firebird database.
    (no parameters)
  • describe-table — Gets the detailed schema (columns, types, etc.) of a specific table.
    tableName:string*
  • get-field-descriptions — Gets the stored descriptions for fields of a specific table (if they exist).
    tableName:string*
  • get-table-indexes — Returns all indexes for a table, including ordered columns, uniqueness, direction, and segment count.
    tableName:string*
  • get-table-constraints — Returns PRIMARY KEY, FOREIGN KEY, UNIQUE, NOT NULL, and CHECK constraints for a table, including constrained columns and references.
    tableName:string*
  • get-table-triggers — Returns only the triggers associated with a table, including source, description, sequence, type, and active state.
    tableName:string*
  • analyze-query-performance — Analyzes the performance of a SQL query by executing it multiple times and measuring execution time
    sql:string*, params:array, iterations:integer
  • get-execution-plan — Gets the execution plan for a SQL query to understand how the database will execute it
    sql:string*, params:array
  • analyze-missing-indexes — Analyzes a SQL query to identify missing indexes that could improve performance
    sql:string*
  • execute-batch-queries — Executes multiple SQL queries in parallel for improved performance.
    queries:array*, maxConcurrent:integer
  • describe-batch-tables — Gets the detailed schema of multiple tables in parallel for improved performance.
    tableNames:array*, maxConcurrent:integer
  • get-table-data — Retrieves data from a specific table with optional filtering, pagination, and ordering.
    tableName:string*, first:integer, skip:integer, filters:array, orderBy:array
  • analyze-table-statistics — Analyzes statistical information about a table including row count, column statistics, and data distribution.
    tableName:string*
  • verify-wire-encryption — Reports wire-encryption configuration; does not verify negotiated encryption on an active database connection.
    (no parameters)
  • get-database-info — Retrieves general information about the connected Firebird database.
    (no parameters)
  • get-server-info — Gets information about the Firebird MCP server and its available tools
    (no parameters)
  • list-available-tools — Lists all tools available on the MCP server
    category:string
  • get-tool-help — Gets detailed information about a specific tool
    toolName:string*
  • system-health-check — Checks system health and database connectivity
    (no parameters)
  • list-available-events — Lists native events (POST_EVENT) available in database triggers and procedures
    (no parameters)
  • list-triggers — Lists all database triggers with their associated table, trigger type, and status
    (no parameters)
  • describe-trigger — Gets detailed information about a specific trigger, including its source code, type, sequence, and status
    triggerName:string*
  • list-procedures — Lists all stored procedures in the database with input and output parameter information
    (no parameters)
  • describe-procedure — Gets detailed information about a specific stored procedure, including its source code and parameters
    procedureName:string*
  • list-functions — Lists all functions in the database (UDFs and PSQL functions)
    (no parameters)
  • describe-function — Gets detailed information about a specific function, including its source code (for PSQL functions)
    functionName:string*
  • list-packages — Lists all packages in the database (available in Firebird 3.0+)
    (no parameters)
  • describe-package — Gets detailed information about a specific package, including its header and body source
    packageName:string*
  • subscribe_to_event — Subscribe to a Firebird event (POST_EVENT) to receive proactive notifications
    eventName:string*

Overview

What is Firebird SQL?

Mcp Firebird is a server that implements Anthropic's Model Context Protocol (MCP) for Firebird SQL databases. It enables Large Language Models (LLMs) like Claude to securely access, analyze, and manipulate data in Firebird databases.

How to use Firebird SQL?

Install globally or locally via npm (npm install -g mcp-firebird or npm install mcp-firebird). Configure using environment variables (FIREBIRD_HOST, FIREBIRD_PORT, FIREBIRD_DATABASE, FIREBIRD_USER, FIREBIRD_PASSWORD, FIREBIRD_ROLE) or run directly with npx and command-line arguments (npx mcp-firebird --host localhost --port 3050 --database /path/to/database.fdb --user SYSDBA --password masterkey). For Claude Desktop, add the server configuration to claude_desktop_config.json using absolute paths.

Key features of Firebird SQL

  • List all databases, tables, views, and stored procedures
  • Retrieve detailed table schemas and field descriptions
  • Execute arbitrary SQL queries with optional parameters
  • Four built-in prompts: query-data, analyze-table, optimize-query, generate-sql
  • Retrieve field comments from Firebird’s RDB$DESCRIPTION metadata

Use cases of Firebird SQL

  • Query data using natural language instead of writing raw SQL
  • Analyze table structures and their purposes with semantic context
  • Optimize existing SQL queries for better performance
  • Generate SQL from a plain-language description (e.g., “get the 10 best-selling products”)
  • Build custom AI assistants that directly interact with Firebird databases

Frequently asked questions

1 What is MCP and how does Mcp Firebird relate to it?

MCP (Model Context Protocol) is a protocol by Anthropic that allows LLMs to access external tools and data. Mcp Firebird implements this protocol specifically for Firebird databases, enabling LLMs like Claude to interact with the database.

2 What runtime dependencies does Mcp Firebird have?

It requires Node.js and npm to install and run. The server is launched as a child process using npx.

3 Where does the data live when using Mcp Firebird?

All data remains in the Firebird database specified via the --database argument or FIREBIRD_DATABASE environment variable. The server only reads and writes to that database.

4 What authentication is supported?

Authentication is handled via a Firebird username and password (FIREBIRD_USER / FIREBIRD_PASSWORD). An optional FIREBIRD_ROLE can also be set.

5 How does the server transport data?

The server communicates over standard input/output (stdin/stdout) as a child process, following the MCP transport contract. The README examples show usage with ChildProcessTransport in TypeScript and subprocess.Popen in Python.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬