# MCP Server

The **aigon MCP server** connects AI assistants to your Aigon notes using the [Model Context Protocol](https://modelcontextprotocol.io).

Once configured, your AI assistant can read, search, and add notes directly from the conversation. Any MCP-compatible client works — Claude Code, Claude Desktop, Cursor, Gemini CLI, ChatGPT, or any other MCP consumer.

Authentication is handled automatically via [OAuth](/docs/auth/#oauth) — a browser window opens for login and consent on first use.

**Endpoint:** `https://mcp.aigon.ai/mcp/`

## Available Tools

| Tool | What it does |
|------|-------------|
| `read_notes` | Fetch recent notes |
| `search_notes` | Search notes by keyword |
| `add_note` | Save a new note |

## Setup

See the [MCP Setup guide](/docs/mcp-setup/) for step-by-step instructions for your client:

- [Claude Code](/docs/mcp-setup/#claude-code)
- [Claude Desktop](/docs/mcp-setup/#claude-desktop)
- [Cursor](/docs/mcp-setup/#cursor)
- [Gemini CLI](/docs/mcp-setup/#gemini-cli)
- [ChatGPT](/docs/mcp-setup/#chatgpt)
- [Other clients](/docs/mcp-setup/#other-clients)
