An MCP server for Firebird SQL databases, enabling LLMs to securely access, analyze, and manipulate database content.
Implementation of Anthropic's MCP (Model Context Protocol) for Firebird databases.
https://github.com/user-attachments/assets/e68e873f-f87b-4afd-874f-157086e223af
MCP Firebird is a server that implements Anthropic's Model Context Protocol (MCP) for Firebird SQL databases. It allows Large Language Models (LLMs) like Claude to access, analyze, and manipulate data in Firebird databases securely and in a controlled manner.
# Global installation (stable)
npm install -g mcp-firebird
# Run the server
npx mcp-firebird --database /path/to/database.fdb
# Install alpha version with latest features
npm install -g mcp-firebird@alpha
# Or use specific alpha version
npm install -g mcp-firebird@2.2.0-alpha.1
Alpha Features (v2.2.0-alpha.1):
For backup/restore operations, you'll need to install the Firebird client tools. See Complete Installation for more details.
For VSCode and GitHub Copilot integration, see VSCode Integration.
Edit the Claude Desktop configuration:
code $env:AppData\Claude\claude_desktop_config.json # Windows
code ~/Library/Application\ Support/Claude/claude_desktop_config.json # macOS
Add the MCP Firebird configuration:
{
"mcpServers": {
"mcp-firebird": {
"command": "npx",
"args": [
"mcp-firebird",
"--host",
"localhost",
"--port",
"3050",
"--database",
"C:\\path\\to\\database.fdb",
"--user",
"SYSDBA",
"--password",
"masterkey"
],
"type": "stdio"
}
}
}
Restart Claude Desktop
MCP Firebird supports multiple transport protocols to accommodate different client needs and deployment scenarios.
The STDIO transport is the standard method for Claude Desktop integration:
{
"mcpServers": {
"mcp-firebird": {
"command": "npx",
"args": [
"mcp-firebird",
"--database", "C:\\path\\to\\database.fdb",
"--user", "SYSDBA",
"--password", "masterkey"
],
"type": "stdio"
}
}
}
SSE transport allows the server to run as a web service, useful for web applications and remote access:
# Start SSE server on default port 3003
npx mcp-firebird --transport-type sse --database /path/to/database.fdb
# Custom port and full configuration
npx mcp-firebird \
--transport-type sse \
--sse-port 3003 \
--database /path/to/database.fdb \
--host localhost \
--port 3050 \
--user SYSDBA \
--password masterkey
# Set environment variables
export TRANSPORT_TYPE=sse
export SSE_PORT=3003
export DB_HOST=localhost
export DB_PORT=3050
export DB_DATABASE=/path/to/database.fdb
export DB_USER=SYSDBA
export DB_PASSWORD=masterkey
# Start server
npx mcp-firebird
Once the SSE server is running, clients can connect to:
http://localhost:3003/sse
http://localhost:3003/messages
http://localhost:3003/health
The latest MCP protocol supporting bidirectional communication:
# Start with Streamable HTTP
npx mcp-firebird --transport-type http --http-port 3003 --database /path/to/database.fdb
Supports both SSE and Streamable HTTP protocols simultaneously with automatic detection:
# Start unified server (supports both SSE and Streamable HTTP)
npx mcp-firebird --transport-type unified --http-port 3003 --database /path/to/database.fdb
http://localhost:3003/sse
http://localhost:3003/mcp
http://localhost:3003/mcp-auto
http://localhost:3003/health
npx mcp-firebird \
--transport-type sse \
--sse-port 3003 \
--database ./dev-database.fdb \
--user SYSDBA \
--password masterkey
npx mcp-firebird \
--transport-type unified \
--http-port 3003 \
--database /var/lib/firebird/production.fdb \
--host db-server \
--port 3050 \
--user APP_USER \
--password $DB_PASSWORD
docker run -d \
--name mcp-firebird \
-p 3003:3003 \
-e TRANSPORT_TYPE=sse \
-e SSE_PORT=3003 \
-e DB_DATABASE=/data/database.fdb \
-v /path/to/database:/data \
purodelhi/mcp-firebird:latest
Configure session timeouts and limits:
# Environment variables for session management
export SSE_SESSION_TIMEOUT_MS=1800000 # 30 minutes
export MAX_SESSIONS=1000 # Maximum concurrent sessions
export SESSION_CLEANUP_INTERVAL_MS=60000 # Cleanup every minute
npx mcp-firebird --transport-type sse
For web applications, configure CORS settings:
# Allow specific origins
export CORS_ORIGIN="https://myapp.com,https://localhost:3000"
export CORS_METHODS="GET,POST,OPTIONS"
export CORS_HEADERS="Content-Type,mcp-session-id"
npx mcp-firebird --transport-type sse
For production deployments, use a reverse proxy like nginx:
server {
listen 443 ssl;
server_name mcp-firebird.yourdomain.com;
ssl_certificate /path/to/cert.pem;
ssl_certificate_key /path/to/key.pem;
location / {
proxy_pass http://localhost:3003;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Connection Refused
# Check if server is running
curl http://localhost:3003/health
# Check port availability
netstat -an | grep 3003
Session Timeout
# Increase session timeout
export SSE_SESSION_TIMEOUT_MS=3600000 # 1 hour
CORS Errors
# Allow all origins (development only)
export CORS_ORIGIN="*"
Memory Issues
# Reduce max sessions
export MAX_SESSIONS=100
# Enable more frequent cleanup
export SESSION_CLEANUP_INTERVAL_MS=30000
# Enable debug logging
export LOG_LEVEL=debug
# Monitor server health
curl http://localhost:3003/health | jq
# Check active sessions
curl http://localhost:3003/health | jq '.sessions'
To install MCP Firebird for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @PuroDelphi/mcpFirebird --client claude
For more detailed information, check the following documents:
If you find MCP Firebird useful for your work or projects, please consider supporting its development through a donation. Your contributions help maintain and improve this tool.
Another great way to support this project is by hiring our AI agents through Asistentes Autónomos. We offer specialized AI assistants for various business needs, helping you automate tasks and improve productivity.
⭐ Donors, sponsors, and clients receive priority support and assistance with issues, feature requests, and implementation guidance. While we strive to help all users, those who support the project financially will receive faster response times and dedicated assistance.
Your support is greatly appreciated and helps ensure the continued development of MCP Firebird!
This project is licensed under the MIT License - see the LICENSE file for details.
Official CoinGecko API MCP Server for Crypto Price & Market Data, across 200+ blokchain networks and 8M+ tokens.
A Model Context Protocol (MCP) server that enables LLMs to interact directly with MongoDB databases
Interact with the Neon serverless Postgres platform
Interact with StarRocks
MCP server acting as an interface to the Frankfurter API for currency exchange data.
Official MCP server for dbt (data build tool) providing integration with dbt Core/Cloud CLI, project metadata discovery, model information, and semantic layer querying capabilities.
A read-only MCP server for querying live Google Directory data using the CData JDBC Driver.
Token Metrics integration for fetching real-time crypto market data, trading signals, price predictions, and advanced analytics.
A MCP server that provides real-time cryptocurrency market data through CoinCap's public API without requiring authentication
Read and write access to Airtable databases.