Skip to main content

MCP Server

Connect your AI coding tools to Peak Gateway docs so they can search and retrieve API documentation in real time.

Quick setup

Claude Code

claude mcp add --transport http peak-gateway-docs https://docs.peakgateway.co/mcp

Cursor

Create .cursor/mcp.json:

{
"mcpServers": {
"peak-gateway-docs": {
"transport": "http",
"url": "https://docs.peakgateway.co/mcp"
}
}
}

VS Code (Copilot)

Create .vscode/mcp.json:

{
"mcpServers": {
"peak-gateway-docs": {
"transport": "http",
"url": "https://docs.peakgateway.co/mcp"
}
}
}

Windsurf

Create ~/.codeium/windsurf/mcp_config.json:

{
"mcpServers": {
"peak-gateway-docs": {
"transport": "http",
"url": "https://docs.peakgateway.co/mcp"
}
}
}

Other MCP clients

  • Server name: peak-gateway-docs
  • HTTP endpoint: https://docs.peakgateway.co/mcp

Most clients need these two fields:

{
"name": "peak-gateway-docs",
"transport": "http",
"url": "https://docs.peakgateway.co/mcp"
}

Available tools

Search documentation.

  • Params:
    • query (string, required)
    • limit (number, 1-20, default 5)
  • Returns: titles, URLs, snippets, relevance scores

Example tool call:

{
"name": "docs_search",
"arguments": {
"query": "transactions",
"limit": 5
}
}

docs_fetch

Retrieve full page content as markdown.

  • Params:
    • url (string, required, full URL from search results)
  • Returns: title, description, table of contents, full markdown

Example tool call:

{
"name": "docs_fetch",
"arguments": {
"url": "https://docs.peakgateway.co/docs/api/transactions"
}
}

Example usage (JSON-RPC)

Search for "transactions":

curl -sS https://docs.peakgateway.co/mcp \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"docs_search","arguments":{"query":"transactions","limit":5}}}'

Fetch a page returned by search:

curl -sS https://docs.peakgateway.co/mcp \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"docs_fetch","arguments":{"url":"https://docs.peakgateway.co/docs/api/transactions"}}}'

Verify connection

  1. Run:
npx @modelcontextprotocol/inspector
  1. Add an HTTP server with URL https://docs.peakgateway.co/mcp.
  2. Call docs_search and confirm you get results.