> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usenerve.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Server

> Connect Nerve to AI assistants like Claude Code and Cursor

## Overview

The Nerve MCP (Model Context Protocol) server allows AI assistants like Claude Code and Cursor to interact with your Nerve data. Once configured, you can search across all your connected integrations, retrieve information, and take actions directly from your development environment.

## Prerequisites

* [Claude Code](https://claude.ai/claude-code) installed on your machine
* A Nerve account with at least one integration connected

## Setup

Add the Nerve MCP server to Claude Code:

```bash theme={null}
claude mcp add --transport http nerve https://mcp.usenerve.com/mcp
```

## Authentication

After adding the MCP server, you need to authenticate with your Nerve account:

1. Start Claude Code:

```bash theme={null}
claude
```

2. Run the MCP command to verify the connection:

```
/mcp
```

3. If you're not authenticated, Claude will provide a link to authorize access. Click the link to open the Nerve authorization page in your browser.

4. Sign in to your Nerve account and authorize Claude Code to access your data.

5. Return to Claude Code and verify the connection is active by running `/mcp` again.

## Usage

Once authenticated, the best way to use Nerve from Claude Code is to explicitly mention it in your prompts:

```
use nerve, search for meeting notes from last week
```

```
use nerve, find all emails from John about the Q4 budget
```

```
use nerve, what action items do I have pending?
```

The MCP server will search across all your connected integrations and return relevant results directly in your conversation.

## Troubleshooting

### Connection Issues

If you're having trouble connecting, verify the MCP server is properly configured:

```bash theme={null}
claude mcp list
```

You should see `nerve` in the list of configured servers.

### Re-authentication

If your authentication expires, simply run `/mcp` again in Claude Code to re-authorize.
