# Does Clawifi support REST and MCP?

> Yes. Clawifi has an HTTP (REST) API at `api.clawifi.dev`, a hosted MCP server at `https://api.clawifi.dev/mcp`, a local MCP server (`clawifi-mcp`), and a Python SDK and CLI. They share one account, one credit balance and the same limits. WebBridge, which works in your own Chrome, needs Clawifi running on your machine.

Canonical page: https://clawifi.dev/answers/rest-and-mcp-agent-web-access

## When should I use MCP instead of REST?

Use MCP when the caller is an agent client such as Claude Code, Cursor, Codex or Claude Desktop: the client lists Clawifi’s tools and the model calls them itself. Use REST or the Python SDK when your own code decides what to fetch, for example in a pipeline or a backend job. Both reach the same API, and each MCP tool call is billed like the API route it runs. See the [API reference](https://clawifi.dev/api-reference) and [MCP tools](https://clawifi.dev/docs/mcp-tools). Tavily and Exa offer MCP servers too; [Tavily vs Clawifi](https://clawifi.dev/compare/tavily) compares the details.

## How do I authenticate?

Send your key as `Authorization: Bearer <key>` (or `X-Clawifi-Api-Key`). Clients that support MCP sign-in (OAuth 2.1) can sign in instead: Claude, Claude Code (`/mcp`) and Codex (`codex mcp login clawifi`) open a sign-in page, and the free tools work before you sign in. Keys are made in the console; see [Authentication](https://clawifi.dev/docs/authentication) and the [Quickstart](https://clawifi.dev/docs/quickstart).

## Where does WebBridge fit?

WebBridge is a Chrome extension that lets an agent act in your own signed-in browser. It pairs with a Clawifi runtime on the same machine, through the `clawifi browser` commands of the [CLI](https://clawifi.dev/docs/cli). The hosted API cannot connect to your browser, and browser state stays on your machine. For pages that only need JavaScript, the hosted API renders them for you. See [Can browser agents use Clawifi?](https://clawifi.dev/answers/browser-agents-and-webbridge)

## Questions

### Is there a TypeScript SDK?

For the Vercel AI SDK there is `@clawifi/ai-sdk`. Other TypeScript code can call the HTTP API or connect to the MCP server. See [Vercel AI SDK](https://clawifi.dev/docs/ai-sdk).

### Which transport does the hosted MCP server use?

Streamable HTTP, at `https://api.clawifi.dev/mcp`. The local server, `clawifi-mcp`, speaks stdio and is started by the client. Client setup: [Claude Code](https://clawifi.dev/for/claude-code), [Cursor](https://clawifi.dev/for/cursor), [Codex](https://clawifi.dev/for/codex).

### Do REST and MCP cost the same?

Yes. An MCP tool call is billed like the API route it runs: most cost 1 credit and a browser render 3.

### What are the rate limits?

Each plan runs a set number of requests at once: 2 on Free, 5 on Starter, 25 on Pro, and 75 on Scale. Past that, the API answers 429 with the seconds to wait. See [Rate limits and plans](https://clawifi.dev/docs/rate-limits).

## Key facts

- HTTP API
- Hosted and local MCP servers
- WebBridge: local runtime only

## Related answers

- [Pricing and credits](https://clawifi.dev/answers/clawifi-pricing-and-credits): How Clawifi pricing works: a Free plan with 1,000 credits a month, Starter, Pro and Scale plans, credit packs, and what each call costs in credits.
- [Browser agents](https://clawifi.dev/answers/browser-agents-and-webbridge): Learn how browser agents use Clawifi's hosted browsing and fetching, and when the local-only WebBridge for your own Chrome applies.
- [Claude web access](https://clawifi.dev/answers/give-claude-web-access): Turn on Claude's built-in web search in claude.ai, Desktop and Claude Code, or add an MCP server such as Clawifi as a connector to search and read pages.
- [All answers](https://clawifi.dev/answers): Every answer on one page.

Next: [Docs](https://clawifi.dev/docs) · [Pricing](https://clawifi.dev/pricing) · [Playground](https://clawifi.dev/playground)
