# Connect a coding agent

Add the Veryfront [MCP server](/docs/mcp.md) to Claude Code, Codex, Cursor or any MCP client, so it works with your projects, agents and runs from its own chat. To have the agent set itself up, paste the prompt from [Set up your coding agent](/docs/agent-setup.md) instead.

## Before you start

You need a Veryfront account. [Sign in](/sign-in) or create one. For **Any client**, you also need an [API key](/docs/authentication/api-keys.md).

## Add the server

Follow the steps for your client:

### Claude Code

1. Run this in your terminal

   ```bash
   claude mcp add --transport http veryfront https://api.veryfront.com/mcp
   ```

2. Run this in Claude Code, then select veryfront to sign in

   ```bash
   /mcp
   ```

### Codex

1. Run this in your terminal

   ```bash
   codex mcp add veryfront --url https://api.veryfront.com/mcp
   ```

2. Run this to sign in

   ```bash
   codex mcp login veryfront
   ```

### Cursor

1. Click Add to Cursor

   [Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=veryfront\&config=eyJ1cmwiOiJodHRwczovL2FwaS52ZXJ5ZnJvbnQuY29tL21jcCJ9)

2. Go to Cursor Settings → MCP and sign in to veryfront

### Gemini CLI

1. Run this in your terminal

   ```bash
   gemini mcp add --transport http veryfront https://api.veryfront.com/mcp
   ```

2. Run this in Gemini CLI to sign in

   ```bash
   /mcp auth veryfront
   ```

### OpenCode

1. Add this to opencode.json

   ```jsonc
   {
     "mcp": {
       "servers": {
         "veryfront": {
           "type": "remote",
           "url": "https://api.veryfront.com/mcp"
         }
       }
     }
   }
   ```

2. Run this to sign in

   ```bash
   opencode mcp auth veryfront
   ```

### Claude

1. Go to Settings → Connectors

2. Click Add custom connector

3. Enter the name

   ```bash
   Veryfront
   ```

4. Enter the server URL

   ```bash
   https://api.veryfront.com/mcp
   ```

5. Follow the sign-in prompts to connect your Veryfront account

### Any client

1. Enter the server URL

   ```bash
   https://api.veryfront.com/mcp
   ```

2. Send your API key in the Authorization header

   ```bash
   Authorization: Bearer $VERYFRONT_API_KEY
   ```

When your browser opens Veryfront, click **Authorize**, then go back to your client. **Any client** sends your API key instead.

Ask your client "Use the veryfront MCP server to list my projects." You should now see it call `veryfront__list_projects` and name your projects.

## The endpoints

| Endpoint                                              | Tools                                                                                                                        |
| ----------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `https://api.veryfront.com/mcp`                       | Veryfront's, as `veryfront__<action>`, across your projects                                                                  |
| `https://api.veryfront.com/projects/<project ID>/mcp` | One project's ([Find your IDs](/docs/authentication/api-keys.md#find-your-ids)), plus its connected apps' as `<app>__<tool>` |

Every `veryfront__` tool is listed in the [MCP reference](/docs/reference/mcp.md).

## Troubleshooting

**If the client reports a 401, "Authentication required"**, the sign-in didn't finish or the key didn't reach the server. Sign in again (`/mcp` in Claude Code, `codex mcp login veryfront` in Codex), or for **Any client** check that `VERYFRONT_API_KEY` is set in the shell that runs it.

## With MCP

1. Call `veryfront__list_projects` with `{}`. It worked when the answer names your projects.

## Next steps

* [Use integrations](/docs/mcp/integrations.md)
* [Ask the Veryfront Agent](/docs/agents/veryfront-agent.md)
