Set up Expand for Cursor with the Expand Skill and MCP tools.
Install the Expand Skill so Cursor knows when to use Expand, then install MCP so Cursor can call Expand Fetch tools directly. Cursor has no hook path, so Skill + MCP is the full recommended setup.
expandai login
expandai skill install cursor project
expandai mcp install cursor projectRun this from your project root. Project setup writes .cursor/skills/expandai/ and .cursor/mcp.json. Restart or reload Cursor so it picks up the new skill and MCP server.
Verification prompt:
Use Expand to fetch https://news.ycombinator.com.
Show me the first 10 lines of Markdown and confirm the Fetch succeeded.Optional auth check:
expandai whoami| Piece | What it does |
|---|---|
| Expand Skill | Installs SKILL.md so Cursor knows when to use Expand and how to fall back to the CLI. |
| MCP server | Registers the Expand MCP server as expandai with expandai mcp run. |
| Shared auth | Cursor config does not receive API keys. The MCP server reads local Expand CLI auth from expandai login. |
Project scope is the default. Use global scope to make Expand available across every project.
| Scope | Install commands | Writes to | When to use |
|---|---|---|---|
| Project | expandai skill install cursor projectexpandai mcp install cursor project | <project root>/.cursor/skills/expandai/<project root>/.cursor/mcp.json | Recommended for one repo. |
| Global |
Commit project-scoped config only if the team wants Expand enabled for collaborators.
The skill gives Cursor instructions for when to use Expand. MCP gives Cursor native tools such as fetch and fetch_search.
Skill alone can work when Cursor can run shell commands. Add MCP when you want Cursor to call Expand as native tools. For Cursor, install both.
Cursor does not have an Expand hook path. Unlike Claude Code, there is no way for Cursor to route its built-in fetch through Expand automatically, so the skill is what tells Cursor when to reach for Expand.
This is reference for debugging. The installer writes both files for you, and you usually should not edit them by hand.
Skill path:
<project root>/.cursor/skills/expandai/SKILL.mdMCP config shape:
{
"mcpServers": {
"expandai": {
"type": "stdio",
"command": "expandai",
"args": ["mcp", "run"]
}
}
The config holds no API key. Auth comes from your local expandai login session, which the MCP server reads at runtime.
Uninstall both pieces if you want Cursor to forget the Expand instructions and remove the native MCP tools.
expandai skill uninstall cursor project
expandai mcp uninstall cursor projectGlobal uninstall:
expandai skill uninstall cursor global
expandai mcp uninstall cursor global<project root>/.cursor/skills/expandai/SKILL.md exists for project setup.<project root>/.cursor/mcp.json contains an expandai server for project setup.~/.cursor/mcp.json contains an expandai server for global setup.Run expandai login and expandai whoami in your terminal, then try the verification prompt again. Do not paste API keys into Cursor config.
Ask Cursor explicitly to use the Expand MCP fetch tool, then retry.
expandai skill install cursor globalexpandai mcp install cursor global~/.cursor/skills/expandai/~/.cursor/mcp.json |
| Use across projects. |