# BugHerd and Codex CLI integration

Use this guide to connect BugHerd to Codex CLI, so you can access projects, tasks, and comments directly from your AI workflows.

---

## **Prerequisites**

Before connecting, ensure:

- You have a **BugHerd account** and You have access to at least one BugHerd organization

- You have the **Codex CLI** **or IDE**

---

## **How to install**

1. In your Terminal, run this command:
​

```
codex mcp add bugherd --url "https://mcp.bugherd.com/mcp"
```

​

2. You’ll be redirected to the BugHerd to authenticate the connection.
Select the **Organization** you want to connect and click **Allow**
⚠️ *Note: The selected organization determines what data Codex CLI can access.*
​

  ![](https://downloads.intercomcdn.com/i/o/ckt07eo8/2359682483/0d9667b090516973ba9765fdbe78/codex+2.jpg?expires=1795797000&amp;signature=c458a4bc5a21f4bc9e093d24c51b385e22c5b072877ffb5e25231987217505a0&amp;req=diMiH892n4VXWvMW1HO4zcsEUaIyc3m44F4hhWWvlpaCstBFbLa3v%2BfOWOYj%0A%2FJof%0A)

3. After authenticating, **you will then be able to connect to the BugHerd MCP via Codex CLI.**

## **Verify Your Connection**

Restart the Codex CLI and try this prompt:

```
“List my BugHerd projects”
```

If you see results, the connection is working.

---

## **What you can do with BugHerd's MCP**

For a full list of what you can do with BugHerd's MCP, check out **[Getting Started with the BugHerd MCP server](https://support.bugherd.com/en/articles/14835206-getting-started-with-the-bugherd-mcp-server).**

Need help? Contact **[support@bugherd.com](https://app.intercom.com/)** or start a chat from the app.