Skip to main content
Glama
quickbase-mcp-dotnet

quickbase-mcp-dotnet

Quickbase MCP server for .NET

An MCP server that lets Claude, GitHub Copilot and Cursor read Quickbase data and make previewed, allowlisted changes.

ci NuGet Downloads License: MIT Glama

Unofficial project. Not affiliated with Quickbase, Inc.

Why this one

Other Quickbase MCP servers are written in TypeScript or only read data. This one is built for teams that run .NET and keep real company data in Quickbase.

  • .NET 10. Runs with dnx, publishes as a native AOT binary and uses the QuickbaseNet SDK for every Quickbase call.

  • Safe writes. Read only by default. Writes go through a preview that returns a change_id, then a separate apply call. Apps and tables are allowlisted and sensitive fields can be hidden from the model entirely.

  • Azure ready. A second host serves streamable HTTP behind Microsoft Entra ID, reads the Quickbase token from Key Vault with a managed identity and deploys to Azure Container Apps with azd up.

Related MCP server: QueryShield

Quick start

You need the .NET 10 SDK, a Quickbase user token and the IDs of the apps you want to expose. The app ID is the part after /db/ in the app's URL.

Try it against a sandbox app first, not production data.

Claude Desktop

Add this to claude_desktop_config.json (Settings > Developer > Edit Config):

{
  "mcpServers": {
    "quickbase": {
      "command": "dnx",
      "args": ["QuickbaseDotNet.Mcp", "--yes"],
      "env": {
        "QB_REALM": "acme.quickbase.com",
        "QB_USER_TOKEN": "b1234_abcd_0_xxxxxxxxxxxxxxxxxxxxxxxx",
        "QB_ALLOWED_APPS": "bqx7a9k2m"
      }
    }
  }
}

Claude Code

claude mcp add quickbase \
  --env QB_REALM=acme.quickbase.com \
  --env QB_USER_TOKEN=b1234_abcd_0_xxxxxxxxxxxxxxxxxxxxxxxx \
  --env QB_ALLOWED_APPS=bqx7a9k2m \
  -- dnx QuickbaseDotNet.Mcp --yes

VS Code

Add this to .vscode/mcp.json. VS Code asks for the token the first time and stores it in its secret storage:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "qb-token",
      "description": "Quickbase user token",
      "password": true
    }
  ],
  "servers": {
    "quickbase": {
      "type": "stdio",
      "command": "dnx",
      "args": ["QuickbaseDotNet.Mcp", "--yes"],
      "env": {
        "QB_REALM": "acme.quickbase.com",
        "QB_USER_TOKEN": "${input:qb-token}",
        "QB_ALLOWED_APPS": "bqx7a9k2m"
      }
    }
  }
}

Cursor

Add this to ~/.cursor/mcp.json or .cursor/mcp.json in your project:

{
  "mcpServers": {
    "quickbase": {
      "command": "dnx",
      "args": ["QuickbaseDotNet.Mcp", "--yes"],
      "env": {
        "QB_REALM": "acme.quickbase.com",
        "QB_USER_TOKEN": "b1234_abcd_0_xxxxxxxxxxxxxxxxxxxxxxxx",
        "QB_ALLOWED_APPS": "bqx7a9k2m"
      }
    }
  }
}

Prefer a global install? dotnet tool install -g QuickbaseDotNet.Mcp puts qb-mcp on your PATH. Use qb-mcp as the command and drop the args.

Also listed on Glama, where you can browse the tools and see the quality score before installing.

Tools

Tool

What it does

get_app

App name, description, time zone and its tables.

list_tables

Tables you can use in an allowed app.

describe_table

Fields with fid, label, type, required, unique and multiple-choice options. Cached for 10 minutes.

query_records

Records with structured filters, sorting and paging. Returns next_skip when more rows exist.

count_records

How many records match a filter.

run_report

Rows of a saved report, with paging.

preview_upsert

What a create or update would change, plus validation problems. Returns a change_id. Writes nothing.

apply_upsert

Writes a previewed upsert. Write mode only.

preview_delete

How many records a delete would remove and a sample of 5. Returns a change_id.

apply_delete

Deletes previewed records, up to QB_MAX_ROWS. Write mode only.

The server also exposes each allowed table's schema as a resource at quickbase://{appId}/{tableId}/schema and three prompts: explore_table, find_stale_records and data_quality_check.

Filters are structured so the model never writes Quickbase query syntax:

{
  "match": "all",
  "conditions": [
    { "field": "Status", "operator": "equals", "value": "Open" },
    { "field": "Spent", "operator": "greater_than", "value": 10000 }
  ]
}

Fields can be labels or fids. Operators are equals, not_equals, contains, starts_with, greater_than, less_than, on_or_after, on_or_before, in_range, is_empty and is_not_empty. Each is checked against the field type. A misspelled label gets an error that lists the closest real labels, so the model can correct itself. A raw where string is accepted as an advanced option and every fid in it is checked.

Results are keyed by label, dates are ISO 8601, text longer than 500 characters is cut and flagged and every response starts with a one-line summary such as Returned 50 of 1,240 records.

Configuration

Variable

Required

Default

Description

QB_REALM

yes

Realm host, such as acme.quickbase.com.

QB_USER_TOKEN

stdio

User token. The HTTP host reads it from Key Vault instead.

QB_ALLOWED_APPS

yes

Comma separated app IDs. Quickbase has no safe way to list every app, so this is required.

QB_ALLOWED_TABLES

no

all tables in the allowed apps

Comma separated table IDs that narrow the allowed apps.

QB_MODE

no

read

read or write. In read mode the write tools are not registered at all.

QB_MAX_ROWS

no

200

Most rows returned or changed in one call. Hard cap 5000.

QB_HIDDEN_FIELDS

no

Fids or labels never returned, such as SSN,Salary. Scope one to a table with bqx7a9k2m.12.

QB_AUDIT_LOG

no

off

File path, stderr or (HTTP only) stdout. JSON lines.

QB_LOG_LEVEL

no

Warning

Stdio log level. Logs go to stderr.

HTTP host only:

Setting

Description

Entra:TenantId

Directory (tenant) ID.

Entra:ClientId

Application (client) ID of the server's app registration.

QB_KEY_VAULT_URI

Vault that holds the user token. Read with the managed identity.

QB_USER_TOKEN_SECRET

Secret name. Defaults to quickbase-user-token.

QB_RATE_LIMIT

Requests per minute per caller. Defaults to 60.

ConnectionStrings:Redis

Optional. Shares pending changes across replicas.

APPLICATIONINSIGHTS_CONNECTION_STRING

Turns on the Azure Monitor exporter.

Settings are checked at startup and every problem is listed at once.

Safety model

The server starts read only. Every call checks the app and table against the allowlists, not only at startup. Hidden fields are left out of queries, results, schemas and suggestions, so the model cannot even learn they exist. Writes take two steps: a preview tool validates the change and returns a change_id that lasts 5 minutes, works once and only for the caller who made it, then an apply tool performs it. Deletes need a filter, are capped at QB_MAX_ROWS and are re-counted before running. Clients that support MCP elicitation also ask the user to confirm. Each call writes a JSON lines audit entry with the caller, tool, table, filter, row count, change_id and outcome, but never field values or tokens.

Azure deployment

The HTTP host serves stateless streamable HTTP at /mcp. It validates Entra ID tokens and maps app roles to permissions: Quickbase.Read sees the read tools and Quickbase.Write also sees preview and apply.

azd auth login
az login
azd env new qbmcp
azd env set QB_REALM acme.quickbase.com
azd env set QB_ALLOWED_APPS bqx7a9k2m
azd env set QB_MODE read
azd up

azd up creates an Entra app registration with both roles (skip this by setting ENTRA_CLIENT_ID first), then provisions Container Apps, Container Registry, Key Vault, Log Analytics and Application Insights with a user-assigned managed identity. Put the token in Key Vault once:

az keyvault secret set --vault-name "$(azd env get-value AZURE_KEY_VAULT_NAME)" \
  --name quickbase-user-token --value "<user token>"

Assign Quickbase.Read or Quickbase.Write to people under Enterprise applications in the Entra admin center. Then connect from VS Code, which signs in with Entra on its own:

{
  "servers": {
    "quickbase": {
      "type": "http",
      "url": "https://<your-app>.azurecontainerapps.io/mcp"
    }
  }
}

or from Claude Code with a token from the Azure CLI:

claude mcp add --transport http quickbase https://<your-app>.azurecontainerapps.io/mcp \
  --header "Authorization: Bearer $(az account get-access-token --resource api://<client-id> --query accessToken -o tsv)"

The container app runs one replica because pending changes live in memory. Set ConnectionStrings__Redis to scale out.

The image is also published to ghcr.io/gitshrini/quickbasenet-mcp on every release.

Example conversations

You: How many open projects are over budget?

Claude calls describe_table on Projects, then count_records with Status equals Open and Over Budget equals true.

Claude: 7 open projects are over budget. The largest overrun is Skylab at 112% of budget.

You: Mark these 3 tasks complete: Pour concrete, Order steel, Hire crane.

Claude calls query_records to find their Record ID#s, then preview_upsert and shows you: 2 updates, 1 unchanged (Hire crane was already done).

You: Go ahead.

Claude calls apply_upsert with the change_id: Updated 2, unchanged 1.

You: Delete the test projects I made last week.

Claude calls preview_delete with Name starts_with "TEST" and Date Created on_or_after 2026-11-23, shows 4 matches with a sample and waits. Your client asks you to confirm before apply_delete runs.

Troubleshooting

dnx is not recognized. It ships with the .NET 10 SDK. Run dotnet --version and install 10.0 or later.

The server exits right away. Settings are checked at startup. Your client's MCP log shows the problem list, for example QB_ALLOWED_APPS is required.

Quickbase rejected the user token. Assign the token to each allowed app under My Preferences > Manage my user tokens in Quickbase.

A table is not available. Its app is not in QB_ALLOWED_APPS or the table is not in QB_ALLOWED_TABLES. Call list_tables to see what the server allows.

Write tools are missing. Set QB_MODE=write. Over HTTP the caller also needs the Quickbase.Write role.

change_id is unknown or expired. It lasts 5 minutes and works once. Run the preview again.

401 from the HTTP host. The token's audience must be the server's client ID or api://<client-id>. The issuer must be your tenant.

Watch the traffic. Run npx @modelcontextprotocol/inspector dnx QuickbaseDotNet.Mcp --yes with the same environment variables to list tools and call them by hand.

Building from source

dotnet build
dotnet test
dotnet run --project src/QuickbaseNet.Mcp.Stdio
dotnet publish src/QuickbaseNet.Mcp.Stdio -c Release -r linux-x64   # native AOT
docker build -t quickbasenet-mcp .

See CONTRIBUTING.md for the layout.

QuickbaseNet is the .NET SDK this server uses for every Quickbase call. Use it directly when you want typed records, source-generated mappers and retries in your own apps.

License

MIT

Available Tools

6 tools
count_recordsCount recordsA
Read-onlyIdempotent

Counts the records in a table that match a filter without returning them. Use it for how-many questions.

Inputs: table (required), where, filter.

describe_tableDescribe tableA
Read-onlyIdempotent

Lists a table's fields with fid, label, type, required, unique and the choices of multiple-choice fields. Call it before filtering, sorting or writing so you use real labels.

Inputs: table (required).

get_appGet appA
Read-onlyIdempotent

Gets a Quickbase app's name, description, time zone and tables. Use it first to learn what an app holds and to find table IDs.

Inputs: appId.

list_tablesList tablesA
Read-onlyIdempotent

Lists the tables you can use in a Quickbase app, with their IDs and descriptions. Use it to find the table ID other tools need.

Inputs: appId.

query_recordsQuery recordsA
Read-onlyIdempotent

Reads records from a table with an optional filter, sort and paging. Use it to look up or list records. When the result has next_skip, call again with skip set to it for the next page.

Inputs: table (required), skip, sort, limit, +3 more.

run_reportRun reportA
Read-onlyIdempotent

Runs a saved Quickbase report and returns one page of its rows. Use it when the user names a report or its ID. When the result has next_skip, call again with skip set to it.

Inputs: table (required), reportId (required), skip, limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 6 tools

    Disambiguation4/5

    Each tool targets a distinct level of the hierarchy (app, table, fields, records, reports, counts), and the three data-read tools are cleanly separated by purpose (filtered query vs. saved report vs. count). The only real overlap is get_app, whose description says it also returns tables, blurring it slightly with list_tables.

    Naming Consistency5/5

    All six tools follow a strict snake_case verb_noun pattern (get_app, list_tables, describe_table, query_records, run_report, count_records). The verbs are used consistently with their meaning across the set.

    Tool Count5/5

    Six tools is well within a focused range, and each one covers a distinct step of the discovery-to-read workflow with no filler. Nothing feels padded or redundant.

    Completeness2/5

    The surface is entirely read-only: there is no way to create, update, or delete records, nor to create tables or fields, so any write task will dead-end. The read path itself (app → tables → fields → query/report/count) is thorough, which keeps this from being a 1.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      Provides a standardized interface for interacting with Quickbase's JSON RESTful API through Claude and other MCP clients, supporting operations like querying records, managing table relationships, and handling file attachments.
      1
      40 npm
      16
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Secure SQL proxy for AI agents. Translates natural language to safe SQL via Claude, validates at the AST level (SELECT-only, no DDL/DML), enforces per-agent row-level security, and audit-logs every query.
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Lets AI assistants like Cursor and Claude safely explore your database and answer questions about your data in plain English.
      4
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Gives an LLM read-only, schema-aware SQL database access so users can ask business questions in plain English and receive the exact result set, with malformed queries returned as errors for automatic retry and correction.
      MIT