Skip to content
Browse documentation
AGENT INTEGRATIONS

Millbase MCP

Your AI agent, connected to your operation.

Ask ChatGPT or Claude about your projects, warehouse, and team. Millbase MCP gives your agent read-only tools to retrieve live data from your organization.

Connect your agent

You’ll need administrator access to your Millbase organization and a client with custom MCP support. Copy this server URL, then follow the steps for your agent.

Server URL
https://app.millbase.ca/api/mcp

Connect ChatGPT

OAuth sign-in
  1. Add a custom MCP server

    In ChatGPT, open Plugins → + → Add custom MCP server. Some workspaces show this under Apps. If the option is missing, ask your workspace administrator to enable custom MCP connections.

  2. Enter the Millbase connection

    Name it Millbase, paste the server URL above, and select OAuth. Choose ChatGPT’s published client identity (CIMD) if asked. No API key or client secret is needed.

  3. Sign in and choose your organization

    Complete the Millbase sign-in, select the organization, review the read permissions, and approve. Return to ChatGPT and enable Millbase in your conversation.

ChatGPT’s setup guide

Your agent provider’s plan and workspace permissions may affect connector availability. Millbase hosts the server; you do not need to run one locally.

Ask your first question

Start with discovery, then ask a specific question. Your agent chooses the right Millbase tool and reads the records needed to answer.

List the Millbase datasets I can access, then show the names and statuses of my projects.

Show my current warehouse inventory with each material’s name, unit, and quantity on hand.

Find my project by name, then summarize its recorded labor hours for last week. Tell me which dates you used.

Be explicit about project names and date ranges. Cost or people questions require those read permissions. If the organization has no matching records, an empty result is expected.

One data source. Two ways in.

The API is the entrance for software. MCP is the entrance for AI agents. Both use the same permission checks and query service to read the same live Millbase database.

YOUR APPREST API
YOUR AI AGENTMillbase MCP
Shared permissions & queries
Your organization’s live Millbase data

MCP translates an agent’s tool call into that shared query service. It does not maintain a separate copy of your data or require an extra public API round trip. Each request reads current stored records; it is not a continuous live stream.

Two tools, clear capabilities

TOOL

list_resources

Lists the datasets, fields, and required permissions available to the connection. No arguments required. Your agent should start here.

TOOL

query_data

Reads rows using resource, fields, filters, limit, and offset. It supports the same query shape and pagination as POST /api/v1/query.

query_data
{
  "resource": "materials",
  "fields": [
    "id",
    "name",
    "unit",
    "on_hand"
  ],
  "limit": 50,
  "offset": 0
}

Explore all datasets and fields · Learn filters and pagination

Your organization stays the boundary

Every call checks access and permissions. These tools cannot create, edit, or delete records. Only allowed datasets and fields are returned. Your AI provider receives the tool results you authorize it to read.

Disconnect whenever you need

In Millbase, go to Settings → API and integrations → MCP. Revoke an OAuth connection to block that agent’s access to the organization. Connections appear after their first authenticated request. For an API-key client, revoke its key in the API keys tab.

MCP shares the API’s rate and monthly limits. Agent discovery and tool calls consume requests. Your AI provider’s own subscription and usage charges are separate. View limits.

If something doesn’t connect

I can’t find the custom connector option.

Check your agent provider’s plan and workspace settings. An administrator may need to enable custom MCP servers. Use the provider’s setup guide linked above for the current interface.

Sign-in succeeds, but a query is denied.

Confirm you selected the correct Millbase organization and still have administrator access. Check the granted scopes. Reconnect to approve missing permissions. If ChatGPT offers optional OpenID Connect scopes and reports an unsupported scope, turn that optional setting off and reconnect with OAuth.

The server URL returns an error in my browser.

The MCP URL is a protocol endpoint, not a web page. Add it to an MCP client with OAuth or a Bearer API key. An ordinary browser visit is not a connection test.

My agent returns no records or stops partway through.

An empty result can be valid. Check the chosen organization, filters, and permissions. For larger datasets, ask the agent to continue with pagination.nextOffset. If rate-limited, wait for Retry-After before trying again.

KEEP BUILDINGBuild with the Millbase API