trimble-connect-mcp
A local MCP server giving Claude access to Trimble Connect, with 40 tools for projects, folder trees, files, versions, members, groups, and permissions via the Core API v2.
README
Trimble Connect MCP
A local (stdio) MCP server that gives Claude access to Trimble Connect: projects, folder trees, files, versions, members, groups and permissions — 40 tools over the Core API v2.
Contents
- Requirements
- Step 1 — Install
- Step 2 — Register a Trimble application
- Step 3 — Configure Claude Desktop
- Step 4 — First run
- Write mode
- Other MCP clients
- Environment variables
- Tools
- Troubleshooting
- Contributing
- License
Requirements
| Item | Requirement |
|---|---|
| OS | Windows 10/11 (macOS and Linux should work but are untested) |
| Host | Claude Desktop, Codex, or any MCP client that speaks stdio |
| Python | 3.10+ |
| uv | Install uv |
| Account | A Trimble ID with access to your Trimble Connect projects |
Step 1 — Install
git clone https://github.com/nhantruong96/trimble-connect-mcp.git
cd trimble-connect-mcp
uv sync
Check that the server imports:
uv run python -c "import server; print('OK')"
Run uv sync again after every git pull.
Step 2 — Register a Trimble application
-
Go to the Trimble Developer Console and create an application.
-
Copy the Client ID and Client Secret.
-
Under Callback URLs, add exactly:
http://localhost:8385/callback -
If port 8385 is already taken, change it in both places: the Callback URL in the Developer Console and
TC_REDIRECT_URIin your config (for examplehttp://localhost:8590/callback).
The redirect URI must match character for character — http://localhost without
a port, 127.0.0.1 instead of localhost, or a missing /callback will all be
rejected.
Step 3 — Configure Claude Desktop
Open %APPDATA%\Claude\claude_desktop_config.json (or Settings → Extensions)
and add the block below, replacing the paths and the client id/secret:
{
"mcpServers": {
"trimble-connect": {
"command": "C:\\path\\to\\trimble-connect-mcp\\.venv\\Scripts\\python.exe",
"args": ["C:\\path\\to\\trimble-connect-mcp\\server.py"],
"env": {
"TC_CLIENT_ID": "<client id>",
"TC_CLIENT_SECRET": "<client secret>",
"TC_APP_NAME": "Trimble_Connect_MCP",
"TC_REDIRECT_URI": "http://localhost:8385/callback",
"TC_ENABLE_WRITE": "1"
}
}
}
}
A ready-made template is in
claude_desktop_config.example.json.
Never commit your real config — it holds the client secret.
Quit Claude Desktop completely, then reopen it.
Step 4 — First run
Ask in plain language:
"Sign in to Trimble Connect, then list my projects."
- The browser opens the Trimble ID page; once you sign in the tools are ready.
- Tokens refresh automatically — you only sign in once.
- After 90 seconds
tc_loginreturnspending=trueplus anauth_url. Finish signing in in the browser, then ask Claude to calltc_auth_status. - If you abandon a sign-in, call
tc_login_cancelbefore starting a new one. - To sign out, delete
%USERPROFILE%\.trimble_connect_mcp\tokens.json.
The region (NA / EU / AP) is detected automatically and cached in
%USERPROFILE%\.trimble_connect_mcp\.
Write mode
The server is read-only by default. Two gates protect every write:
- Set
TC_ENABLE_WRITE=1in theenvblock of your config and restart the host. Verify withtc_write_status. - Destructive tools (delete, overwrite a version, replace an ACL, remove a
member) additionally require
confirm=true.
There is no restore tool — Core API 2.0 has no undelete endpoint. Deleted items can only be recovered by hand in the Trimble Connect web interface.
Other MCP clients
- Take the
.venv\Scripts\python.exeandserver.pypaths from Step 3. - Register a stdio server using them as
commandandargs. - Set the same environment variables as in Step 3.
- Restart the client.
To check that the server starts at all:
uv run python server.py
Environment variables
| Variable | Default | Notes |
|---|---|---|
TC_CLIENT_ID |
— | required |
TC_CLIENT_SECRET |
— | required |
TC_APP_NAME |
Trimble_Connect_MCP |
used in the OAuth scope (openid <app name>) |
TC_REDIRECT_URI |
http://localhost:8385/callback |
must match the URL registered in the Developer Console |
TC_DOWNLOAD_DIR |
~/Downloads/TrimbleConnect |
where downloaded files are saved |
TC_TOKEN_DIR |
~/.trimble_connect_mcp |
where tokens and the region cache are stored |
TC_ENABLE_WRITE |
(off) | set to 1 to enable the write / delete / permission tools |
Tools
Read — always available
| Tool | What it does |
|---|---|
tc_login |
Sign in with Trimble ID in the browser (OAuth2 + PKCE), callback http://localhost:8385/callback. Non-blocking: past wait_seconds (default 90s) it returns pending=true and keeps listening in the background for up to 10 minutes |
tc_login_cancel |
Cancel a pending sign-in and release the callback port |
tc_auth_status |
Sign-in status, including login_in_progress |
tc_write_status |
Whether write mode is on, and how to turn it on |
tc_list_regions |
List the server regions (NA / EU / AP) |
tc_list_projects |
List projects across every region, filter by name, refresh=true to bypass the cache |
tc_get_project |
Details of one project |
tc_list_project_members |
Project members and their roles |
tc_list_project_roles |
The project's roles (ADMIN / USER) |
tc_list_folder |
Contents of a folder (defaults to the project root) |
tc_folder_tree |
Folder tree as text, bounded by depth and entry count |
tc_get_file |
File metadata |
tc_list_file_versions |
Version history of a file |
tc_download_file |
Download a file (default ~/Downloads/TrimbleConnect) |
tc_search |
Keyword search |
tc_get_permissions |
Read the ACL of a folder or file |
tc_list_groups / tc_list_group_users |
Project groups and their members |
tc_api_get |
Raw GET against any Core API endpoint (todos, views, releases, activities…) |
Write — folders and files (needs TC_ENABLE_WRITE=1)
| Tool | What it does | Gate |
|---|---|---|
tc_create_folder |
Create one folder | — |
tc_create_folder_structure |
Create a whole tree (e.g. a CDE) from paths like 01-WIP/01-ARC; existing folders are skipped, so it is safe to re-run |
— |
tc_rename_item |
Rename a folder or file | — |
tc_move_item |
Move a folder or file to another folder | — |
tc_copy_file |
Copy a file (server-side) | — |
tc_copy_folder |
Copy a folder with its contents (the server walks the tree; bounded by max_items) |
— |
tc_upload_file |
Upload a NEW file (fails if the name already exists) | — |
tc_upload_new_version |
Upload a NEW VERSION of an existing file | confirm=true |
tc_delete_item |
Delete a folder or file (force=true for a non-empty folder) |
confirm=true |
Write — permissions
| Tool | What it does | Gate |
|---|---|---|
tc_grant_permissions |
Grant READ / FULL_ACCESS / NO_ACCESS to users or groups — merges safely by reading the current ACL and changing only the entries you name |
— |
tc_remove_permissions |
Drop users or groups from the ACL (back to inherited access) | confirm=true |
tc_set_permissions |
Replace the ENTIRE ACL (advanced — wipes existing entries) | confirm=true |
Trimble Connect has only three levels: READ, FULL_ACCESS, NO_ACCESS (files
do not support NO_ACCESS). The special id tc-groups:* means every project
member. The underlying PATCH .../permissions overwrites the whole ACL, which
is why tc_grant_permissions / tc_remove_permissions are preferred over
tc_set_permissions.
Write — members and groups
| Tool | What it does | Gate |
|---|---|---|
tc_add_project_user |
Invite a user to the project by email (role: USER/ADMIN) |
— |
tc_update_project_user |
Change a member's role | — |
tc_remove_project_user |
Remove a member from the project | confirm=true |
tc_create_group / tc_rename_group |
Create or rename a group | — |
tc_add_group_users |
Add members to a group | — |
tc_remove_group_users |
Remove members from a group | confirm=true |
tc_delete_group |
Delete a group (any permission granted to it is lost) | confirm=true |
tc_api_write |
Raw POST/PATCH/PUT/DELETE for endpoints with no dedicated tool | confirm=true |
Troubleshooting
| Symptom | Fix |
|---|---|
redirect_uri mismatch on the sign-in page |
The URL in the Developer Console must match TC_REDIRECT_URI character for character (Step 2) |
Cannot listen on localhost port 8385 |
The port is taken — call tc_login_cancel, or change the port in both places (Step 2) |
Browser shows connection refused on the callback page |
The sign-in wait expired (10 minutes) — call tc_login again |
tc_login returns pending: true |
Not an error — finish signing in, then call tc_auth_status |
Writing to Trimble Connect is disabled |
TC_ENABLE_WRITE=1 is not set, or the host was not restarted |
Refused: this would… |
A destructive tool needs confirm=true — check the target, then call again |
| HTTP 403 | Your Trimble account has no access to that project |
| HTTP 409 / 412 on create or upload | An item with that name exists — to overwrite, use tc_upload_new_version |
| No projects listed | Run tc_list_projects with refresh=true; check tc_auth_status shows the right account |
ImportError: cannot import name 'MCPServer' |
You are on mcp 1.x — run uv sync to get the 2.x version pinned in uv.lock |
| An endpoint has no dedicated tool (ToDos, Views, Releases, Activities…) | Use tc_api_get, e.g. todos?projectId=… or projects/{id}/activities |
Contributing
Development setup, repository layout, and how to add a tool are in CONTRIBUTING.md.
The upstream API is https://app.connect.trimble.com/tc/api/2.0 (master, North
America); other regions are discovered through the /regions endpoint.
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。