uLogger MCP Server
Give your AI coding agent direct access to the uLogger platform. Query logs, investigate faults, push device configurations, create firmware deployments, and manage certificates — all through natural language.
What It Does
The uLogger MCP server gives any Model Context Protocol client a set of tools for the uLogger platform. Your agent calls them on your behalf — nothing to download or install.
🔍 Log Queries
Search and filter device logs by time window, application, device serial, and log level. Triage incidents in seconds.
⚙️ Log Configuration
Push log level and module configurations to devices over MQTT. Enable specific debug modules by name.
🐛 Fix Field Issues
Query fault signatures, core dumps, and critical error logs across your fleet. Your agent identifies patterns, correlates them with firmware versions, and suggests or applies code fixes directly in your repository.
🔌 Bootstrap uLogger
Download your device certificate bundle, embed the keys as a C header file, and integrate the uLogger library into your embedded project — the agent follows the integration guide and wires everything up for you.
Quick Start
1 Get an API token
Generate an API token (it starts with ulg_) from your uLogger dashboard. The MCP server uses it to authenticate as you, so your agent only sees your account’s data.
2 Add the MCP server to your agent
The server URL is the same for every client:
https://api.ulogger.ai/mcpSend your token in the Authorization header as Bearer ulg_YOUR_TOKEN. See AI Platform Configuration below for the exact setup for your agent.
3 Ask your agent
Describe what you want in plain language — for example, “Show me the last hour of error logs for device 1001.” Your agent picks the right uLogger tool and calls it. See Usage Examples below.
AI Platform Configuration
Add the uLogger MCP server to your AI coding agent. Keep your token in an environment variable or a secure prompt — never commit it to a repository.
Claude Code
Add the server with one command:
claude mcp add --transport http ulogger https://api.ulogger.ai/mcp \
--header "Authorization: Bearer ulg_YOUR_TOKEN"To share it with your team, commit a project-scoped .mcp.json and have each person set ULOGGER_API_TOKEN in their environment:
{
"mcpServers": {
"ulogger": {
"type": "http",
"url": "https://api.ulogger.ai/mcp",
"headers": { "Authorization": "Bearer ${ULOGGER_API_TOKEN}" }
}
}
}VS Code + GitHub Copilot
Add the server to .vscode/mcp.json in your workspace. VS Code prompts for your token the first time and stores it securely:
{
"inputs": [
{
"type": "promptString",
"id": "ulogger-token",
"description": "uLogger API token",
"password": true
}
],
"servers": {
"ulogger": {
"type": "http",
"url": "https://api.ulogger.ai/mcp",
"headers": { "Authorization": "Bearer ${input:ulogger-token}" }
}
}
}Then open Copilot Chat in Agent mode — the uLogger tools appear in the tools list.
Cursor
Add the server to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project), and set ULOGGER_API_TOKEN in your environment:
{
"mcpServers": {
"ulogger": {
"url": "https://api.ulogger.ai/mcp",
"headers": { "Authorization": "Bearer ${env:ULOGGER_API_TOKEN}" }
}
}
}Check that the server shows as connected under Settings → MCP.
Other MCP Clients
Any client that supports remote MCP servers over HTTP can connect. Configure it with:
# Transport
Streamable HTTP
# URL
https://api.ulogger.ai/mcp
# Header
Authorization: Bearer ulg_YOUR_TOKENThe server is stateless and enforces the same per-account rate limit as the uLogger API (60 requests per minute).
Available Tools
Your agent sees these tools once the server is connected. You don’t need to call them by name — just describe what you want.
| Tool | What it does | Access |
|---|---|---|
query_logs | Search device logs by time window, application, device serial, and log level. | Read |
query_ingest_errors | Find logs that failed to ingest, and why. | Read |
query_metrics | Pull device metrics over a time window. | Read |
list_applications | List the applications in your account. | Read |
list_device_types | List device types for an application. | Read |
list_device_modules | List the debug modules a device exposes. | Read |
list_artifact_versions | List uploaded firmware versions. | Read |
list_fault_signatures | Group crashes across your fleet by fault signature. | Read |
get_fault_signature | Get details for one fault signature. | Read |
list_fault_events | List individual fault events. | Read |
get_core_dump | Fetch a decoded core dump for a fault. | Read |
get_certificate_bundle | Get a download link for your device certificate bundle, including the device private key. | Sensitive |
push_log_config | Push a log level and module configuration to a live device over MQTT. | Write |
create_deployment | Create a firmware deployment. | Write |
health | Check that the uLogger API is reachable. | Read |
push_log_config changes logging on a live device, create_deployment starts a firmware rollout, and get_certificate_bundle returns your device private key. Most agents ask you to approve each tool call — don’t auto-approve these, and never commit the downloaded keys to a public repository.
Usage Examples
Once connected, just describe what you want in natural language. Your AI agent picks the right uLogger tool and calls it for you.
🔍 Query Recent Logs
Ask your agent:
"Show me the last hour of logs for device 1001"Example output:
{
"count": 5,
"logs": [
{
"_msg": "Super-dee-duper bad error",
"_time": "2026-05-21T01:40:39.44167Z",
"application_id": "899391",
"device_serial": "1001",
"device_type": "WiFi_Demo",
"level": "3",
"version": "v2.0.0"
},
{
"_msg": "Let's create an error-level log and observe this",
"_time": "2026-05-21T01:40:39.434437Z",
"device_serial": "1001",
"level": "0",
"version": "v2.0.0"
}
]
}
→ 5 log entries returned⚙️ Push a Log Configuration
Ask your agent:
"Enable debug logging for the SYSTEM and SENSOR modules on device 1001"Example output:
{
"success": true,
"log_level": "DEBUG",
"module_flags": 10,
"timeout_seconds": 300,
"topic": "config/v0/975773647/899391/1001"
}📦 List Available Debug Modules
Ask your agent:
"What debug modules are available on device 1001?"Example output:
Device 1001 has 5 debug modules:
COMM (bit 4)
MAIN (bit 1)
POWER (bit 16)
SENSOR (bit 8)
SYSTEM (bit 2)
Want me to enable any of these?🔌 Integrate uLogger Into My Project
Ask your agent:
"Integrate uLogger into my embedded project"Your agent downloads your device certificates and private keys from the uLogger platform, embeds them as C header files into your project, and follows the integration guide to bootstrap the uLogger library into your codebase.
Example output:
Downloaded your certificate bundle and extracted it to ./certs:
✔ ulogger_certs_keys.h
✔ endpoint.txt
✔ thing_name.txt
✔ readme.txt
Next steps:
1. Copy ./certs/ulogger_certs_keys.h into your project's source tree.
2. Include the header in your TLS setup code:
#include "ulogger_certs_keys.h"
Available symbols:
ulogger_user_certificate — device certificate (PEM, null-terminated)
ulogger_user_private_key — device private key (PEM, null-terminated)
ulogger_CA_certificate — CA certificate (PEM, null-terminated)
3. Connect to the MQTT broker at mqtt.ulogger.ai:8883 using mutual TLS.Prefer a Standalone CLI?
We recommend the MCP server for AI agents. If you want to script against uLogger or use an agent without MCP support, the ulogger-data-client CLI is still available. Set ULOGGER_API_TOKEN in your environment and run it directly.
~/.agents/skills/ulogger-data-client/). It teaches the agent the CLI’s flags and workflows.
Ready to Get Started?
Create a free account to get your API token, then connect the MCP server and start talking to your devices.