PM

purodelphi/mcpfirebird

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

73 stars 29 forks 质量 88 趋势 15MIT

实现了Anthropic的Firebird数据库MCP协议。

概览

实现了Anthropic的MCP(模型上下文协议),用于Firebird数据库。 https://github.com/user-attachments/assets/e68e873f-f87b-4afd-874f-157086e223af MCP Firebird 是一台实现 Anthropic 模型上下文协议(MCP)的服务器,用于 Firebird SQL 数据库。它允许大型语言模型(LLM)如 Claude 安全且受控地访问、分析和操作 Firebird 数据库中的数据。 该服务器已升级以支持MCP生态系统中最新的企业标准: - ⚡ 重复数据库查询现在使用持久内存连接,完全绕过握手开销,几乎即时执行。- 🎯 与 Firebird 的 POST_EVENT 原生集成。服务器实时监听数据库事件,主动通知 AI 客户端(如 Claude/n8n),无需持续轮询。- 快速示例:请求您的代理与 NEW_ORDER subscribe_to_event。

概述(AI 翻译)

稳定2.12.3包含仅准备优化器计划和目录识别索引建议: 2.13.0-alpha.1 期间的所有改进现已稳定。历史ISO/UTC日期仍为默认;只有FIREBIRD_DATE_FORMAT=wall-clock启用无区输出。无需驱动升级、自动索引DDL或新的安全默认。Node.js 20.19+ 要求。 请参阅诊断指南、发布说明及日期配置。

MCP火鸟

实现了Anthropic的MCP(模型上下文协议),用于Firebird数据库。

示例用法

https://github.com/user-attachments/assets/e68e873f-f87b-4afd-874f-157086e223af

什么是MCP Firebird?

MCP Firebird 是一台实现 Anthropic 模型上下文协议(MCP)的服务器,用于 Firebird SQL 数据库。它允许大型语言模型(LLM)如 Claude 安全且受控地访问、分析和操作 Firebird 数据库中的数据。

🚀 MCP 2.7+(性能与安全)有什么新内容

该服务器已升级以支持MCP生态系统中最新的企业标准:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Stable 2.13.0 includes the issue #47 display-text encoding fix and production dependency security updates from alpha.3. Structured data and parsed JSON preserve original values. Existing prepare-only query diagnostics, ISO/UTC date defaults and security settings remain available. Node.js 20.19+ is required. See the release notes, text compatibility contract and diagnostics guide.

MCP Firebird

Implementation of Anthropic’s MCP (Model Context Protocol) for Firebird databases.

Example Usage

https://github.com/user-attachments/assets/e68e873f-f87b-4afd-874f-157086e223af

What is MCP Firebird?

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.

🚀 What’s New in MCP 2.7+ (Performance & Security)

This server has been upgraded to support the latest enterprise standards in the MCP ecosystem:

  • ⚡ Connection Pooling (Zero Latency): Repetitive database queries now use persistent in-memory connections, completely bypassing handshake overhead and executing almost instantly.
  • 🎯 Proactive Events (Triggers): Native integration with Firebird’s POST_EVENT. The server listens to database events in real-time and proactively notifies the AI client (e.g., Claude/n8n) without requiring continuous polling.
    • Quick Example: Ask your agent to subscribe_to_event with NEW_ORDER. When Firebird runs POST_EVENT 'NEW_ORDER', your agent gets instantly notified! Read detailed guide and examples.
  • 🛡️ Enterprise-Managed Authorization (EMA): Don’t want to expose your actual database password (SYSDBA) to the LLM client? Enable EMA to require an --api-key on incoming connections. The server intercepts this token and injects the real password securely under the hood.
    • Quick Example: Start the server with --password "real_password" --api-key "my-secure-token". The remote client connects using Authorization: Bearer my-secure-token. The database password never leaves the server! Read detailed guide in Security.
  • 🌊 Bidirectional Streaming (Streamable HTTP / SSE): Perfect for n8n or remote deployments. Provides real-time event streaming and stateful sessions across HTTP.
    • Quick Example: Start the server with TRANSPORT_TYPE=sse SSE_PORT=3003. Configure your client (like n8n) to connect to http://YOUR_SERVER:3003/mcp. Read detailed guide.

🏗️ Transport Modes & Architecture

在 GitHub 查看完整 README

安装

npx mcp-firebird --host localhost --port 3050 --database C:\\path\\to\\database.fdb --user SYSDBA --password masterkey
新手?先看 mcpskill.org 教程 →

配置

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