# SimilarWeb Traffic — how to use (mcp.ai)

Estimate any website's traffic: an approximate monthly-visits chart for the last few months, trend, global and country rankings, engagement, traffic sources, keywords and competitors. Query several domains in one call. Hosted by the platform, no credentials.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_similarweb?ms=1788385140000`
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. `similarweb_traffic`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/similarweb`
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/similarweb/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/similarweb/traffic` — Tráfego web ESTIMADO de domínios (dados do SimilarWeb via crawler). Retorna o gráfico aproximado de VISITAS MENSAIS dos últimos ~3 meses (`estimated_monthly_visits`), média e tendência, além de rankin
  - body: { domains: string[] }

## Example prompts
- "What's the estimated traffic of stripe.com over the last months?"
- "Compare the monthly visits of notion.so and coda.io"
- "Where does openai.com's traffic come from and what are its top keywords?"

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