
Samsara MCP
io.github.AutomationSquadOS由 GitHub 帳號 AutomationSquadOS 發布v1.0.0-beta.1更新於 Oct 24, 2026
Samsara fleet management — vehicles, routes, drivers, HOS compliance. Unofficial, bring your token.
概覽
非官方的 Samsara 車隊管理整合,讓助理讀取與管理車輛、路線、駕駛、HOS 合規、地址、Webhook 與聯絡人。
- 可以做什麼
- 透過 21 個工具把助理連接到 Samsara 車隊管理 API,涵蓋車輛、路線、駕駛、地址、Webhook 與聯絡人。車輛工具可列出車輛、詳細資料、即時位置與統計;路線工具可建立、更新、刪除、列出並最佳化路線,更新時保留站點 ID。駕駛工具涵蓋詳細資料、工時(HOS)合規追蹤與安全事件。另內建速率限制、重試與路線最佳化。
- 適用情境
- 適合想用對話方式操作 Samsara 車隊資料的情境:建立並最佳化配送路線、查看車輛即時位置,或檢視駕駛 HOS 記錄與安全事件。適合已在使用 Samsara、想快速取得助理介面而不自行開發 API 整合的團隊。
- 執行需求
- 以 stdio 在本機執行,面向 Claude Desktop 等桌面用戶端。需要 Node.js 18+,且因 npm 套件尚未發布,只能先複製儲存庫再自行建置安裝。需要 Samsara API 權杖,放在 SAMSARA_API_TOKEN,可選 SAMSARA_BASE_URL(歐盟客戶使用歐盟端點)。需要連線至 Samsara API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Samsara MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Automation Squad - MCP for Samsara
Complete Samsara Fleet Management integration for Claude AI
21 tools | Expert knowledge built-in | Beta
⚠️ Important Disclaimer
UNOFFICIAL INTEGRATION: This is an unofficial third-party MCP server. It is:
- ❌ NOT affiliated with, endorsed by, or sponsored by Samsara Inc.
- ❌ NOT an official Samsara product
- ✅ Built using Samsara's public API with your own API credentials
- ✅ Fully compliant with Samsara's API terms of service
Samsara® is a registered trademark of Samsara Inc.
See NOTICE for the full third-party disclaimer. Licence: MIT.
🎯 What This Does
Connects Claude AI to the Samsara Fleet Management API with:
✅ 21 tools across vehicles, routes, drivers, addresses, webhooks and contacts
✅ Expert knowledge built into every tool description
✅ Automatic state preservation (stop IDs, route data)
✅ Smart rate limiting (won't hit API limits)
✅ Route optimization (built-in efficiency algorithms)
✅ Production best practices (error handling, retries)
Tools Included
Vehicle Management (4 tools)
- List vehicles, get vehicle details, real-time locations, statistics
Route Management (6 tools) ⭐ Our specialty
- Create, update, delete routes
- Auto-preserve stop state (critical for time tracking!)
- Route optimization (minimize distance/time)
- List and get route details
Driver Management (4 tools)
- List drivers, get driver details
- Hours of Service (HOS) compliance tracking
- Safety event monitoring
Address & Location (2 tools)
- Create and manage saved addresses
- Geofence integration
Webhook Integration (3 tools)
- Real-time event notifications
- Route updates, vehicle events, etc.
Contact Management (2 tools)
- Create and manage contacts for route stops
🚀 Quick Start
Prerequisites
- Node.js 18+ installed
- Samsara API Token (Get one here)
- Claude Desktop or any MCP-compatible client
Installation
Note: the npm package
@automationsquad/mcp-samsarais not published yet, so clone-and-build is the only install path that works today. When it ships, annpxone-liner will replace the steps above.
Configuration
Add to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Replace /absolute/path/to/mcp-samsara with wherever you cloned the repo. The path must
be absolute — Claude Desktop does not resolve ~ or relative paths.
EU customers: Use https://api.eu.samsara.com for SAMSARA_BASE_URL
Restart Claude
Quit and reopen Claude Desktop. You should see the Samsara tools available!
💡 Example Usage
Create a route with optimization
Claude will:
- Create the route with proper addresses
- Automatically optimize stop order
- Preserve all stop IDs for tracking
- Assign vehicle/driver if requested
Track vehicle locations
Monitor driver compliance
🔥 What Makes This Better
vs. Building Direct API Integration
vs. Official MCP (if one existed)
🛠️ Architecture
Rate Limiting
Conservative 5 requests/second with automatic throttling and retry logic.
Error Handling
- Automatic retry on 429 (rate limit)
- Clear error messages
- Graceful degradation
State Preservation
Critical feature: When updating routes, we automatically:
- Fetch existing route
- Extract stop IDs
- Preserve them in updates
- Prevent data loss
This is a best practice that prevents losing arrival/departure times.
📚 Documentation
Environment Variables
Tool Naming Convention
All tools are prefixed with samsara_ for clarity:
samsara_list_vehiclessamsara_create_routesamsara_get_driver_hos- etc.
🤝 TMS Integration
Use externalIds in routes/vehicles/drivers to link with your TMS:
Then query by external ID:
🐛 Troubleshooting
"Error: SAMSARA_API_TOKEN environment variable is required"
Set your API token in the Claude config file (see Configuration above).
"Samsara API error (401): Unauthorized"
Your API token is invalid or expired. Generate a new one in Samsara dashboard.
"Samsara API error (429): Too Many Requests"
The MCP will automatically retry. If you see this often, you may have other integrations hitting the API.
Tools not showing in Claude
- Check config file syntax (valid JSON)
- Restart Claude completely (quit and reopen)
- Check Claude logs for errors
📦 What's Included
🔐 Security
- Your credentials stay local - API token is stored on your machine
- No data collection - We don't see your Samsara data
- Open source - Review the code yourself
- No phone-home - MCP runs entirely locally
📈 Roadmap
- Add more tools (dispatch, assets, tags)
- Support for batch operations
- Enhanced optimization algorithms
- Multi-route optimization
- Fuel cost calculations
- Compliance reporting tools
🎓 Learn More
💬 Support
Beta Users:
- Join the Automation Squad community
- Email: [email protected]
- GitHub Issues: Report a bug
📝 License
MIT License - See LICENSE file for details
🙏 Credits
Built with ❤️ by Automation Squad
Not affiliated with Samsara Inc. This is an independent integration using Samsara's public API.
⭐ More from Automation Squad
Docs, install steps and what this server does not do: automationsquad.com/mcp/samsara
The AI Five — five things worth knowing about AI and automation, weekly. Subscribe free →
Ready to automate your fleet management? Let's go! 🚀
來源:README.md,提交 aa91fa0
工具
0版本歷史
1- v1.0.0-beta.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分