π οΈ MCP Server with C# + Firebird
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
Jump to
- 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:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
π οΈ MCP Server with C# + FirebirdCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- 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 viaHost.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)

Example of use:
json
{
"tool": "ListTable",
"args": {
"tableName": "CUSTOMERS",
"filter": "STATUS = 'ACTIVE'",
"limitRecords": 10
}
}
``Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



