Skip to content

Connect an AI Client (MCP)

This guide connects an MCP client to the Trimble Connect Files and Topics MCP servers on production. For what the servers do, see the MCP overview.

  • A Trimble ID with access to at least one Trimble Connect project.
  • API credentials for a Trimble Identity application. Request them with the Request for API Credentials form (see step 1).
  • An MCP host that supports Streamable HTTP and static OAuth client credentials (Cursor, Claude, VS Code), or a way to get a user token for scripts.
Connecthttps://app.connect.trimble.com
MCP basehttps://cloud.mcp.trimble.com
Identityhttps://id.trimble.com

Trimble Identity applications for the MCP servers are set up by Trimble. Fill in the Request for API Credentials form, and include the following in your request.

  1. Grant type: ask for Authorization Code Grant. Client Credentials isn’t supported, because tools must run as a user.

  2. Scopes: list the scopes for the servers you’ll use:

    ServerScopes
    Filesopenid connect-mcp-files connect
    Topicsopenid connect-mcp-topics connect
    Bothopenid connect-mcp-files connect-mcp-topics connect
  3. Sign-In Redirect URL: list the redirect URI of every host you’ll use. Identity rejects the login if the URI the host redirects to isn’t registered.

    HostRedirect URIs
    Claudehttps://claude.ai/api/mcp/auth_callback
    https://claude.com/api/mcp/auth_callback
    Cursorhttp://localhost:8787/callback
    cursor://anysphere.cursor-mcp/oauth/callback

    Include every URI listed for a host. Which one a host uses depends on its version and platform.

  4. When your request is approved, you receive the application’s client ID and client secret. These go in the MCP client config. They are not the bearer token: the host uses them to get a user token through a browser login.

Add both servers to use files and topics in the same session.

Add the servers to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global). See Cursor MCP (static OAuth).

.cursor/mcp.json
{
"mcpServers": {
"connect-data-mcp": {
"url": "https://cloud.mcp.trimble.com/tc-files/v1/mcp",
"auth": {
"CLIENT_ID": "<client id>",
"CLIENT_SECRET": "<client secret>",
"scopes": ["openid", "connect-mcp-files", "connect"]
}
},
"connect-topics-mcp": {
"url": "https://cloud.mcp.trimble.com/tc-topics/v1/mcp",
"auth": {
"CLIENT_ID": "<client id>",
"CLIENT_SECRET": "<client secret>",
"scopes": ["openid", "connect-mcp-topics", "connect"]
}
}
}
}

Cursor opens a browser, you sign in, and Cursor sends the resulting user token to /mcp.

  1. Ask the client to list its tools. You should see connect_* tools from each server you added.

  2. Try a prompt:

    • Files: “List my Connect projects.”
    • Topics: “List topics for project <id> in region us.”
  3. If a project isn’t found, ask again with another region (eu, uk, ap, ap2). Each call searches one region only.

SymptomCause and fix
UNAUTHENTICATEDThe Authorization header didn’t reach the server. Check the host config.
UNAUTHORIZEDToken invalid, expired, wrong environment, or the Identity token exchange failed. Sign in again; check the scopes.
401 with WWW-AuthenticateNo token sent. The header points to the server’s RFC 9728 metadata (see below).
Incompatible auth server: does not support dynamic client registrationCursor has no auth.CLIENT_ID. Add it to mcp.json (an unset ${env:…} variable causes this too).
Browser login never returns to the hostThat host’s redirect URI isn’t registered as a Sign-In Redirect URL for your credentials. Request it with the Request for API Credentials form.
Cursor still uses the old configFully quit and reopen Cursor.
Project not foundWrong region. Call again with another region.

Protected-resource metadata:

  • Files: GET https://cloud.mcp.trimble.com/tc-files/v1/.well-known/oauth-protected-resource
  • Topics: GET https://cloud.mcp.trimble.com/tc-topics/v1/.well-known/oauth-protected-resource
  • Send the token only in the HTTP Authorization header. Never pass it as a tool argument.
  • Keep the client secret out of shared repositories. Prefer a global config or environment variables for anything committed.

Still stuck? See Help and Feedback.