Expand AI logo
DocsDocs
API Reference
Login

Documentation

Start

WelcomeQuickstartCLI & AgentsAPI Reference

Concepts

Progressive DisclosureState JSONAppendixCitationsSearch & HighlightingSpatial MarkdownInclude OptionsBatched Fetch

Product

FetchMCPCLI

SDKs

SDKsTypeScript SDKPython SDK

MCP

Model Context Protocol server for expand.ai

The Expand MCP server gives AI assistants access to Fetch and Fetch Search. For local use, authenticate once with the CLI and let the MCP server read the stored local credential.

expandai login

Install with the CLI

Use the installer for supported clients.

expandai skill install cursor project
expandai mcp install cursor project
expandai skill install codex project
expandai mcp install codex project

Claude Code and OpenCode use hooks instead of MCP-only setup:

expandai hook install claude-code project
expandai hook install opencode project

Use global instead of project only when Expand should be available everywhere on this machine.

Manual configuration

For other MCP clients, configure the server command to run the CLI.

{
  "mcpServers": {
    "expandai": {
      "command": "expandai",
      "args": ["mcp", "run"]
    }
  }
}

If the client cannot find globally installed commands, use the absolute path to the expandai binary.

Usage

Once installed, ask the assistant to fetch or search a URL.

  • Markdown: "Fetch https://react.dev/learn as markdown"
  • Search: "Search https://docs.python.org for event loop examples"
  • Citations: "Fetch this docs page and cite where the authentication limits are described"
  • Follow-up exploration: "Fetch the page, then inspect the links that look relevant to pricing"
PreviousFetch
NextCLI

On This Page

Install with the CLIManual configurationUsage