Skip to main content

MCP Server

Mercur exposes a Model Context Protocol (MCP) server that lets AI tools search Mercur documentation directly. Instead of relying on training data that may be outdated, your AI assistant queries the actual docs in real time.
https://docs.mercurjs.com/mcp

Available tool

SearchMercurJsDocumentation

Searches across all Mercur documentation and returns:
  • Relevant excerpts matching your query
  • Page titles for context
  • Direct links to documentation pages
Use it when you need to look up API references, understand how a module works, find CLI commands, or retrieve examples during development.

Connect to your AI environment

1

Open MCP settings

  1. Press Cmd + Shift + P
  2. Search for Open MCP settings
  3. Select Add custom MCP
2

Configure the server

Add the following to your mcp.json:
{
  "mcpServers": {
    "mercur": {
      "url": "https://docs.mercurjs.com/mcp"
    }
  }
}
3

Use it

Restart Cursor and ask: “Search Mercur docs for how to add a block”
See Cursor MCP docs for more.

When to use MCP vs llms.txt

ApproachBest for
MCP ServerLive search, always up-to-date, integrated environments
llms.txtFull context dump, tools without MCP, offline use