πŸ› οΈ MCP Server with C# + Firebird

by BoscoBecker

5 stars
137 downloads
Not rated
GitHub

About

This project is an MCP (Model Context Protocol) server written in C# that provides tools for executing dynamic queries against a Firebird database. It supports filtering, record limits, and uses .NET 9 with FirebirdSql.Data.FirebirdClient.

Details

Author
BoscoBecker
GitHub stars
5
Downloads
137
Categories
Other

- Single MCP tool: ListTable returns records from a Firebird table.
- Conditional SQL filtering via the filter parameter.
- Record limit enforced using Firebird’s FIRST clause.
- Built with .NET 9 and the official Firebird ADO.NET client.
- Configuration via appsettings.json for database connection.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name πŸ› οΈ MCP Server with C# + Firebird
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Create an appsettings.json file with a FirebirdDb connection string pointing to your .fdb file. Install dependencies using dotnet add package ModelContextProtocol --prerelease. Run the server with npx @modelcontextprotocol/inspector dotnet run.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "\ud83d\udee0\ufe0f mcp server with c# + firebird": {
            "MCPServerCSharp": {
                "command": "npx",
                "args": [
                    "@modelcontextprotocol/inspector",
                    "dotnet",
                    "run"
                ]
            }
        }
    }
}

McpServers

{
    "MCPServerCSharp": {
        "command": "npx",
        "args": [
            "@modelcontextprotocol/inspector",
            "dotnet",
            "run"
        ]
    }
}

πŸ› οΈ MCP Server with C# + Firebird

This project is an MCP ( Model Context Protocol ) server created in C#, with support for custom tools. One of the features included is the execution of dynamic queries in a Firebird database with filter and record limit.

---

πŸ“¦ Technologies Used

- NPX - C# (.NET 9) - MCP ( Model Context Protocol ) - FirebirdSql.Data.FirebirdClient - Dependency Injection via Host.CreateApplicationBuilder - Configuration via appsettings.json

---

βš™οΈ Configuration

Install dependencies by nuget `` bash dotnet add package ModelContextProtocol --prerelease

πŸ”§ appsettings.json File

Create an appsettings.json file in the project root with the following content:

json
{
"ConnectionStrings": {
"FirebirdDb": "Database=C:\\yourdata.fdb;User=SYSDBA;Password=masterkey;Dialect=3;Charset=NONE;" }
}
πŸ“ Change the path of the .FDB file according to the location of your database.

πŸ“‚ Recommended Project Structure


src/
β”œβ”€β”€ MCPServer/
β”‚ β”œβ”€β”€ Factory/
β”‚ β”‚ └── FbConnectionFactory.cs
β”‚ β”œβ”€β”€ Tools/
β”‚ β”‚ └── FbQueries.cs
β”‚ β”œβ”€β”€ Program.cs
β”‚ └── appsettings.json

## 🧩 MCP Tool Available

πŸ” ListTable

csharp [McpTool, Description("List all records from a Firebird table")] public List<Dictionary<string, object>> ListTable(string tableName, string filter = "", int limitRecords = 0)
This tool returns records from a Firebird database table with:

πŸ”Ž Conditional filter via SQL

πŸ”’ Limitation of number of records (using FIRST)

{DF1F6239-E983-45A0-87E3-645291A6D2C7}

Example of use:

json
{
"tool": "ListTable",
"args": {
"tableName": "CUSTOMERS",
"filter": "STATUS = 'ACTIVE'",
"limitRecords": 10
}
}
``

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.