QuickbaseDotNet.Mcp
0.1.0
{ "inputs": [ { "type": "promptString", "id": "QB_REALM", "description": "Quickbase realm host, such as acme.quickbase.com." }, { "type": "promptString", "id": "QB_USER_TOKEN", "description": "Quickbase user token with access to the allowed apps.", "password": true }, { "type": "promptString", "id": "QB_ALLOWED_APPS", "description": "Comma separated app IDs the server may use." }, { "type": "promptString", "id": "QB_ALLOWED_TABLES", "description": "Optional comma separated table IDs that narrow the allowed apps." }, { "type": "pickString", "id": "QB_MODE", "description": "read registers read tools only. write adds preview and apply tools.", "default": "read", "options": ["read", "write"] }, { "type": "promptString", "id": "QB_MAX_ROWS", "description": "Most rows a tool returns or changes in one call. Up to 5000.", "default": "200" }, { "type": "promptString", "id": "QB_HIDDEN_FIELDS", "description": "Comma separated fids or labels that are never returned, such as SSN,Salary." }, { "type": "promptString", "id": "QB_AUDIT_LOG", "description": "File path for a JSON lines audit log or stderr." } ], "servers": { "QuickbaseDotNet.Mcp": { "type": "stdio", "command": "dnx", "args": ["QuickbaseDotNet.Mcp@0.1.0", "--yes"], "env": { "QB_REALM": "${input:QB_REALM}", "QB_USER_TOKEN": "${input:QB_USER_TOKEN}", "QB_ALLOWED_APPS": "${input:QB_ALLOWED_APPS}", "QB_ALLOWED_TABLES": "${input:QB_ALLOWED_TABLES}", "QB_MODE": "${input:QB_MODE}", "QB_MAX_ROWS": "${input:QB_MAX_ROWS}", "QB_HIDDEN_FIELDS": "${input:QB_HIDDEN_FIELDS}", "QB_AUDIT_LOG": "${input:QB_AUDIT_LOG}" } } } }
.vscode/mcp.json settings file.
dotnet tool install --global QuickbaseDotNet.Mcp --version 0.1.0
dotnet new tool-manifest
dotnet tool install --local QuickbaseDotNet.Mcp --version 0.1.0
#tool dotnet:?package=QuickbaseDotNet.Mcp&version=0.1.0
nuke :add-package QuickbaseDotNet.Mcp --version 0.1.0
Quickbase MCP server for .NET
An MCP server that lets Claude, GitHub Copilot and Cursor read Quickbase data and make previewed, allowlisted changes.
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.
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.
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_tableon Projects, thencount_recordswithStatus equals OpenandOver 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_recordsto find their Record ID#s, thenpreview_upsertand shows you: 2 updates, 1 unchanged (Hire crane was already done).You: Go ahead.
Claude calls
apply_upsertwith thechange_id: Updated 2, unchanged 1.
You: Delete the test projects I made last week.
Claude calls
preview_deletewithName starts_with "TEST"andDate Created on_or_after 2026-11-23, shows 4 matches with a sample and waits. Your client asks you to confirm beforeapply_deleteruns.
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.
Related
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
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 0 | 12/3/2026 |