---
title: Build with AI
description: >-
  Use the Datadog MCP server, CLI, and Claude Code skills to build and analyze
  LLM applications from your development environment.
breadcrumbs: Docs > Agent Observability > Build with AI
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Build with AI

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ({% placeholder "user-datadog-site-name" /%}).
{% /alert %}

{% /callout %}

Datadog supports coding agent workflows through the Datadog MCP server, the Pup CLI, and Claude Code skills. Use them to investigate your Agent Observability data and iterate on your LLM application without leaving your development environment.

## Get started{% #get-started %}

### Install the skills{% #install-the-skills %}

```shell
npx skills add datadog-labs/agent-skills/agent-observability --full-depth -y
```

### Choose a data backend{% #choose-a-data-backend %}

The skills read your Agent Observability data through either the Datadog MCP server or the Pup CLI. Set up one of them. Each skill detects the MCP server at startup and falls back to the Pup CLI when the MCP server is unavailable.

{% collapsible-section open=null #option-a-mcp-server %}
#### Option A: Datadog MCP server

{% callout %}
# Important note for users on the following Datadog sites: app.datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, app.datadoghq.eu, ap1.datadoghq.com, ap2.datadoghq.com, uk1.datadoghq.com



Connect the MCP server to your Claude Code session:

```
claude mcp add --scope user --transport http datadog-llmo-mcp \
  '<YOUR_MCP_SERVER_ENDPOINT>?toolsets=llmobs,core'
```

To run the MCP server as a local binary instead, install the Datadog MCP CLI:

```shell
curl -sSL https://coterm.datadoghq.com/mcp-cli/install.sh | bash
datadog_mcp_cli login
claude mcp add datadog --scope user -- ~/.local/bin/datadog_mcp_cli
```


{% /callout %}

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com



{% alert level="danger" %}
This product is not supported for your selected site ({% placeholder "user-datadog-site-name" /%}).
{% /alert %}


{% /callout %}

For the full setup, including authentication options and the available tools, see [MCP Server](https://docs.datadoghq.com/llm_observability/build_with_ai/mcp_server.md).
{% /collapsible-section %}

{% collapsible-section #option-b-pup-cli %}
#### Option B: Pup CLI

Install the Pup CLI with Homebrew (macOS/Linux) and authenticate:

```shell
brew tap datadog-labs/pack
brew install datadog-labs/pack/pup
pup auth login
```

For other installation methods, supported commands, and authentication options, see [Pup CLI](https://docs.datadoghq.com/cli.md).
{% /collapsible-section %}

Build with the Datadog MCP server and skills:

- [MCP Server](https://docs.datadoghq.com/llm_observability/build_with_ai/mcp_server.md)
- [Claude Code Skills](https://docs.datadoghq.com/llm_observability/build_with_ai/claude_code_skills.md)
 