Expand AI logo
DocsDocs
Login

Documentation

Introduction

WelcomeQuickstartConcepts

Product

FetchMCPCLI

SDKs

SDKsTypeScript SDKPython SDK

Product

MCP

Model Context Protocol server for expand.ai

Installation

The easiest way to install the expand.ai MCP server is using our CLI.

npx expandai mcp install
pnpx expandai mcp install
bun x expandai mcp install

Manual Installation

If you prefer manual configuration, you can add the expand.ai MCP server to your AI assistant's settings.

Add to your :

claude_desktop_config.json
{
  "mcpServers": {
    "expandai": {
      "command": "npx",
      "args": ["-y", "@expandai/mcp@latest"],
      "env": {
        "



The config file is located at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add to your .mcp.json:

{
  "mcpServers": {
    "expandai": {
      "command": "npx",
      "args": ["-y", "@expandai/mcp@latest"],
      "env"




  1. Open Cursor Settings (Cmd/Ctrl + ,)
  2. Navigate to MCP Servers
  3. Click Add Server
  4. Enter the configuration:
{
  "expandai": {
    "command": "npx",
    "args": ["-y", "@expandai/mcp@latest"],
    "env": {



  1. Open VS Code Settings (Cmd/Ctrl + ,)
  2. Search for Copilot MCP
  3. Click Edit in settings.json
  4. Add the configuration:
{
  "github.copilot.mcp.servers": {
    "expandai": {
      "command": "npx",
      "args": ["-y", "@expandai/mcp@latest"],





Add to your Windsurf configuration:

{
  "mcp": {
    "servers": {
      "expandai": {
        "command": "npx",
        "args": ["-y", "@expandai/mcp@latest"],






Usage

Once installed, you can ask your AI assistant to fetch content from any URL.

Basic Examples

  • Markdown: "Fetch https://react.dev/learn as markdown"
  • Summary: "Summarize https://techcrunch.com/article"
  • Snippets: "Search https://docs.python.org for event loop examples"
  • Metadata: "Fetch https://example.com and include page metadata"
PreviousFetch
NextCLI

On This Page

InstallationManual InstallationUsageBasic Examples
EXPAND_API_KEY
"
:
"{{API_KEY}}"
}
}
}
}
: {
"EXPAND_API_KEY": "{{API_KEY}}"
}
}
}
}
"EXPAND_API_KEY": "{{API_KEY}}"
}
}
}
"env": {
"EXPAND_API_KEY": "{{API_KEY}}"
}
}
}
}
"env": {
"EXPAND_API_KEY": "{{API_KEY}}"
}
}
}
}
}