# MCP

The Ren MCP server lets Claude Code, Codex or any other MCP client manage your Ren organization. For claude.ai and chatgpt.com, see [Ren MCP](/docs/ren-mcp/).

## Add the server

The server is at `https://api.useren.ai/mcp`. You don't need an API key: your client signs in to Ren with OAuth. Pick your client:

<HarnessPicker tools={["claude-code", "codex", "opencode", "hermes", "other"]} />

<Harness id="claude-code" first>

Add Ren for every project:

```sh
claude mcp add --transport http --scope user ren https://api.useren.ai/mcp
```

Then start Claude Code, run `/mcp`, select **ren** and choose **Authenticate**.

</Harness>

<Harness id="codex">

Add Ren to `~/.codex/config.toml`, then sign in:

```sh
codex mcp add ren --url https://api.useren.ai/mcp
codex mcp login ren
```

The Codex app and IDE extension share this setup.

</Harness>

<Harness id="opencode">

Add Ren for every project:

```sh
opencode mcp add ren --global --url https://api.useren.ai/mcp
```

Then start OpenCode, run `/mcps`, select **ren** and sign in.

</Harness>

<Harness id="hermes">

Add Ren to `~/.hermes/config.yaml`, then sign in:

```sh
hermes mcp add ren --url https://api.useren.ai/mcp --auth oauth
hermes mcp login ren
```

</Harness>

<Harness id="other">

Add a remote server with this URL. If your client asks for a transport, choose Streamable HTTP.

```text
https://api.useren.ai/mcp
```

Many clients take a JSON entry like this one. Check your client's docs for its file and field names.

```json
{
  "mcpServers": {
    "ren": {
      "type": "http",
      "url": "https://api.useren.ai/mcp"
    }
  }
}
```

Your client must support OAuth client ID metadata documents, which MCP added in its 2025-11-25 version.

</Harness>

## Sign in

When your client signs in, your browser opens. Sign in to Ren, pick the **Organization** and click **Allow**.

The client then works as you in that organization, so it can do what you can do in the app. It renews its access on its own. To switch organizations, sign the client out of Ren and sign in again.

## Check the connection

Ask your client:

```text
Use Ren to show who I'm signed in as, then list my spaces.
```

It calls `me_get` and `space_list`, and answers with your email, your organization and spaces such as Engineering.

## Tools

Each tool is one operation of the [Ren API](/docs/developers/api/). It has the operation's name and takes the same inputs. For example:

| Tool            | What it does                           |
| --------------- | -------------------------------------- |
| `me_get`        | Shows who you are and the organization |
| `space_list`    | Lists the spaces you can see           |
| `space_get`     | Shows one space, by slug or ID         |
| `task_create`   | Creates a task in a space              |
| `space_archive` | Archives a space                       |

Your client lists every tool once it connects. Tools that only read are marked read-only and tools that remove something are marked destructive, so your client can ask you before it runs them.

Most tools work in one space, so say which one in your prompt: "list the open tasks in Engineering".

Tools can't add, change or remove a [secret](/docs/credentials/), and can't set or show a webhook's signing secret. Do those in the app or with the [CLI](/docs/developers/cli/).

## When it fails

| What you see                                        | Fix                                                                                                                                                                                                         |
| --------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Sign-in fails before your browser opens             | Your client doesn't support OAuth client ID metadata documents, and Ren doesn't support the older dynamic client registration. Update the client, try another one, or use the [CLI](/docs/developers/cli/). |
| `NotFoundError` for a space you can open in the app | The client is signed in to another organization. Sign in again and pick the organization of that space.                                                                                                     |