# Metaphor — how to use (mcp.ai)

Connect your Metaphor account and use 1 tools for artificial intelligence straight from your AI agent. Connect with your own API key. Metaphor is a neural search engine that enables developers to perform contextually relevant searches by understanding how people describe and share content online.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_metaphor?ms=1787296020000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `metaphor_get_contents`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/metaphor`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/metaphor/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/metaphor/get/contents` — Tool to retrieve parsed HTML/text contents and metadata for documents by their IDs." Use when you need to fetch the full text and metadata of multiple documents at once.
  - body: { endChar?: integer, contents: string[], startChar?: integer }

## Example prompts
- "What can I do in Metaphor?"
- "Show me a summary of my Metaphor account"

## More
- Page: https://mcp.ai/metaphor
- Agent spec (llms.txt): https://mcp.ai/metaphor/llms.txt
- Postman collection: https://mcp.ai/metaphor/postman.json
