Docs / Guide

MCP Configuration

Configuration

The hosted service handles OAuth and storage. Local stdio settings control client-side limits; requests outside a configured guard fail before DataBlue runs.

VariableDefaultAllowed
DATABLUE_API_KEYRequired for actionsDataBlue API key
DATABLUE_BASE_URLhttps://api.datablue.devAPI origin
DATABLUE_MCP_TIMEOUT_MS600001000-300000
DATABLUE_MCP_MAX_RESULTS1001-100
DATABLUE_MCP_MAX_CRAWL_PAGES1001-1000
DATABLUE_MCP_MAX_RESPONSE_BYTES600002000-500000
DATABLUE_MCP_MAX_ARRAY_ITEMS101-100
DATABLUE_MCP_ALLOW_FULL_RESPONSEfalsetrue or false

DATABLUE_MCP_MAX_RESPONSE_BYTES bounds the complete serialized MCP tool result, including the JSON text block, matching structuredContent, and an optional resource link. The inline data budget is therefore smaller than the full wire budget. DATABLUE_MCP_ALLOW_FULL_RESPONSE=true deliberately bypasses that byte limit for successful calls; use it only with a local client that can accept the duplicated full payload.

Example environment

Example
DATABLUE_API_KEY="YOUR_API_KEY"
DATABLUE_MCP_TIMEOUT_MS="90000"
DATABLUE_MCP_MAX_RESPONSE_BYTES="100000"
DATABLUE_MCP_MAX_ARRAY_ITEMS="20"

Troubleshooting

SymptomCheck
Hosted connector cannot authenticateReconnect the client, finish DataBlue consent, and confirm the grant under Connected apps.
Hosted grant was revokedRun the client's MCP login again to create a new grant; revoked access and refresh tokens cannot be reused.
Local server does not startNode.js is 18.18 or newer and npx can install @datablue/mcp@latest.
Local tool returns authentication errorDATABLUE_API_KEY is in the MCP server environment, not a tool argument.
Large fields are missingUse datablue_get_result_items with response.full_result.id; use the raw URI only for lossless reconstruction.
Local client shows no toolsRestart the client and inspect the stdio server with MCP Inspector.
Local protocol output is invalidKeep stdout reserved for MCP; send logs to stderr.