---
title: "uLogger MCP Server for AI Coding Agents | uLogger"
description: "Connect the uLogger MCP server to Claude Code, GitHub Copilot, Cursor, and other AI coding agents. Query logs, investigate faults, push device configurations, create deployments, and manage certificates using natural language."
url: https://ulogger.ai/ai-skill.html
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://ulogger.ai/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# 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](https://modelcontextprotocol.io) 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](https://holodeck.ulogger.ai). 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/mcp
```

Send your token in the `Authorization` header as `Bearer ulg_YOUR_TOKEN`. See [AI Platform Configuration](#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](#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_TOKEN
```

The 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      |

**Keep approval on for three tools:** `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](https://github.com/ulogger-ai/embedded%5Fagent) 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.

####  Windows

[ AMD64 (.exe)](https://ulogger-downloads.s3.amazonaws.com/skill/ulogger-data-client-windows-amd64.exe) 

####  macOS

[ AMD64 (Intel)](https://ulogger-downloads.s3.amazonaws.com/skill/ulogger-data-client-darwin-amd64) [ ARM64 (Apple Silicon)](https://ulogger-downloads.s3.amazonaws.com/skill/ulogger-data-client-darwin-arm64) 

####  Linux

[ AMD64](https://ulogger-downloads.s3.amazonaws.com/skill/ulogger-data-client-linux-amd64) [ ARM64](https://ulogger-downloads.s3.amazonaws.com/skill/ulogger-data-client-linux-arm64) 

**Using the CLI with an agent:** Download[SKILL.md](https://ulogger-downloads.s3.amazonaws.com/skill/SKILL.md) and place it alongside the binary in your agent’s skill directory (for example `~/.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.

[Create Free Account](https://holodeck.ulogger.ai?action=create-account) [View Documentation](documentation.html)
