---
name: keenable
description: Search and read the web with Keenable, a web search API for AI agents on its own index. Use when a task needs current information, sources for a claim, documentation, release notes, news, or the content of a known URL, or when wiring web search into an agent through MCP, the REST API, or the CLI. Works without an account or API key.
license: MIT
metadata:
  author: Keenable
  homepage: https://keenable.ai
  docs: https://docs.keenable.ai
  version: "1.1.0"
  last_verified: "2026-11-19"
---

# Keenable

Keenable gives agents two operations: search the web and get ranked results with an
excerpt of each page, and fetch any page as clean markdown. Both work without an
account or API key, rate limited per IP. An optional API key removes the hourly cap.

There are four ways in:

- **SDK**: official Python, TypeScript, Go and Rust SDKs, keyless by default. Use one when
  you are adding web search to code.
- **MCP server**: `https://api.keenable.ai/mcp` (Streamable HTTP) with the tools
  `search_web_pages` and `fetch_page_content`.
- **REST API**: `https://api.keenable.ai/v1/search` and `/v1/fetch`, plus keyless
  `/v1/search/public` and `/v1/fetch/public`.
- **CLI**: `keenable` (`brew install keenableai/tap/keenable-cli`).

## Where to read next

- Every docs page, with a one-line description: https://docs.keenable.ai/llms.txt
- Which access method fits your agent (keyless, API key, device login, MCP sign-in, x402): https://docs.keenable.ai/auth.md
- SDK setup: https://docs.keenable.ai/sdks.md
- MCP URLs and tools: https://docs.keenable.ai/mcp-server.md
- Every error, with its cause and fix: https://docs.keenable.ai/errors.md
- Moving from another search API: https://docs.keenable.ai/migrate.md
- OpenAPI spec: https://docs.keenable.ai/api-reference/openapi.json

## Which product when

| You want to | Use |
| --- | --- |
| Find pages about a topic | Search |
| Read a known URL | Fetch (`live=true` if the page is not indexed) |
| Query structured web data | SELECT, a separate MCP server: https://docs.keenable.ai/select |
| Get new pages about a topic as they appear | Monitors (needs an API key): https://docs.keenable.ai/products/monitors |
| Pay per call without an account | Pay per request (x402): https://docs.keenable.ai/pay-per-request |

## Add search to code with the SDK

Install the SDK for the project's language:

```bash
pip install keenable                                   # Python
npm install keenable                                   # TypeScript
go get github.com/keenableai/keenable-sdk/go@latest    # Go
cargo add keenable                                     # Rust
```

Then search with no key. This Python example asks for 3 results and prints them as a
numbered `[1] Title (url)` block a model can cite:

```python
from keenable import Keenable

print(Keenable().search("fastest inference providers 2026", max_results=3).to_context())
```

TypeScript: `await new Keenable().search(query, { maxResults: 3 })`, then `.toContext()`.
Go: `keenable.New(nil)`, `client.Search(ctx, query, &keenable.SearchOptions{MaxResults: 3})`,
then `results.ToContext(nil)`.
Rust: `keenable::Client::new()?`, `client.search(query).await?`, then `results.to_context()`.
Fetch up to 20 pages with `Keenable().fetch([url])` in Python, `await new Keenable().fetch([url])`
in TypeScript, `client.Fetch(ctx, []string{url})` in Go or `client.fetch([url]).await?` in Rust.
The SDKs' `fetch` calls `POST /v1/fetch`, which needs an API key; `results[i]` is the
page for `urls[i]`. The SDKs read `KEENABLE_API_KEY` from the environment when it
is set. Full guide:
https://docs.keenable.ai/sdks.

## Connect an agent

The CLI detects local clients and writes their MCP config:

```bash
keenable configure-mcp --all
```

Or add the server by hand. Claude Code:

```bash
claude mcp add keenable --transport http https://api.keenable.ai/mcp --scope user
```

Cursor and other clients that take a remote URL:

```json
{ "mcpServers": { "keenable": { "url": "https://api.keenable.ai/mcp" } } }
```

Codex, in `~/.codex/config.toml`:

```toml
[mcp_servers.keenable]
url = "https://api.keenable.ai/mcp-public"
```

To use a key, add the header `X-API-Key: keen_<your_key>` (`--header` for
`claude mcp add`, a `headers` object in JSON, `http_headers` in Codex). Without it the
server runs keyless. Keyless Codex uses `/mcp-public` because `/mcp` publishes OAuth
discovery, which can make Codex start a browser sign-in. With a key, Codex can use
either URL.

Claude Desktop, claude.ai and the Claude mobile apps connect through the **Keenable Web
Search** connector in Claude's Connectors Directory, not a config file: Claude Desktop
ignores `"url"` entries in its config. ChatGPT installs Keenable from its Plugins
Directory.

## Search

`search_web_pages` (MCP) or `POST /v1/search` (REST) takes:

| Parameter | Purpose |
| --- | --- |
| `query` | Required. Describe the page you want, not a list of keywords. |
| `site` | Restrict results to one domain, e.g. `docs.python.org`. |
| `published_after`, `published_before` | Publication date window: a date (`2026-01-15`), a timestamp, or a relative delta (`7d`, `12h`, `3mo`). |
| `acquired_after`, `acquired_before` | Same, on the date Keenable indexed the page. |
| `query_time` | Search the index as it stood at that moment. An upper bound only, not a recency filter: use `published_after` for recent results. |
| `objective` | Optional. Pass it only for multi-step or ambiguous questions, not every search. In one to three sentences, say what the query leaves out (who, where, when, which sources count) and what earlier searches found; don't restate the question. Up to 1,000 Unicode code points after trimming. Reranking only: it ranks results together with the query, while retrieval uses the query alone. It is not billed and is not retained under zero data retention. |
| `max_results` | 1 to 50, default 10. |
| `snippet_max_length` | Excerpt length per result, 180 to 10000 characters. |
| `disable_cards` | `true` puts ordinary web pages in place of cards (Keenable's own `cards.keenable.ai/w/` results, which expire after one day). `pro` and `realtime` modes only. |
| `moderation` | `moderate` or `strict` removes results judged unsafe; removed results aren't replaced, so fewer can come back. Leave it out for no moderation. `pro` and `realtime` modes only, and not for a URL query unless `exclude_domains` is set (the URL is then searched and filtered). Replaces the deprecated `safety_mode`, which stops working on 1 March 2027. |

Each result has `url`, `title`, `snippet` and, when known, `published_at`. Read
`snippet`: `description` is returned but empty.

## Fetch

`GET /v1/fetch?url=...` (REST) returns a page as markdown.

| Parameter | Purpose |
| --- | --- |
| `url` | Required. |
| `prompt` | An extraction instruction ("List the pricing tiers with monthly prices"); returns only that part. |
| `max_chars` | Cap on returned content, default 50000. |
| `live` | `true` fetches the current version from the source instead of Keenable's copy. Use it for pages that change often. |

`fetch_page_content` (MCP) takes `urls` (1 to 20, one without an API key), `max_chars`
(default 20000 in total, split across the pages), `prompt` (applied to every page) and `max_age_hours` (`0` reads the
pages live).

## Monitors

A monitor watches the web for new pages about a topic, or one page for changes. It needs an
API key; there is no keyless access. Create one with `POST https://api.keenable.ai/v1/monitors`:

```bash
curl -X POST https://api.keenable.ai/v1/monitors \
  -H "X-API-Key: $KEENABLE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: llm-releases" \
  -d '{"search": {"query": "new open-weights LLM releases"}}'
```

Write the query as a topic in plain words, not keywords. Before creating, list monitors
with `GET /v1/monitors` (pass each page's `next_cursor` as `cursor` until `has_more` is
false). For a topic, compare each search monitor's `search.query` with it; for a page,
compare each page monitor's `page.url` with the URL. Reuse a match only if it is `active`
and has the webhook, schedule and options the user asked for; otherwise ask
before changing it, or create a new one. The `name` filter matches display names, not queries. A new search monitor is empty
for minutes to hours: it matches only pages crawled after it was created. Read what it
found with `GET /v1/monitors/{id}/results` (newest first; stop at the first `id` you have
already seen), or add a `webhook` (it sends each new result as `monitor.result.found`), or a `schedule`. To
stop a monitor, `PATCH` it with `{"status": "paused"}`; `DELETE` removes it and its results
for good. To watch one page instead, send `"type": "page"` with
`"page": {"url": ..., "watch_for": ...}`; read its history with `GET /v1/monitors/{id}/versions`.
Over MCP with a key, the tools are `create_monitor`, `list_monitors`,
`get_monitor_results` and `delete_monitor`: https://docs.keenable.ai/mcp-server#monitors-tools.

## REST without a key

Keyless calls go to the `/public` paths and must name the calling app in
`X-Keenable-Title`, or they get `400 Missing app identifier`:

```bash
curl -X POST https://api.keenable.ai/v1/search/public \
  -H "X-Keenable-Title: my-app" \
  -H "Content-Type: application/json" \
  -d '{"query": "release notes for zod 4 breaking changes", "max_results": 5}'

curl "https://api.keenable.ai/v1/fetch/public?url=https://example.com" \
  -H "X-Keenable-Title: my-app"
```

With a key, call `/v1/search` and `/v1/fetch` and send `X-API-Key: keen_<your_key>`
(`Authorization: Bearer keen_<your_key>` also works). Fetch takes `GET` with `url`, or
`POST` with a `urls` list: up to 20 URLs with a key, one without.

## Limits and keys

| Access | Limit |
| --- | --- |
| No key | 10 requests per second and 1,000 per hour, per IP (shared with other traffic from that IP) |
| API key | 10 requests per second per organization by default, no hourly cap; 100,000 requests a month free, then prepaid credits |
| Monitors | 120 requests per minute per organization (10 creates), at most 100 active monitors; free for now |
| x402 pay per request | $0.01 per call in USDC on Base at `/v1/x402/search` and `/v1/x402/fetch`, no account |

Get a key by running `keenable login` (browser device flow) or in the console at
https://app.keenable.ai/console. Never ask a user to paste a key into chat; point them to
`keenable login` or an environment variable such as `KEENABLE_API_KEY`.

Only a human creates the Keenable account. Never sign up on the user's behalf: a person
signs up and approves device login in the console.

## Research workflow

1. Clarify scope, freshness and output format when the request is ambiguous.
2. Search. Split a multi-part question into separate searches; narrow with `site` and
   the date parameters instead of adding words to the query. Compute exact dates for
   relative requests like "last week".
3. Fetch the most relevant results before relying on them for anything consequential.
   Snippets are for triage, not evidence.
4. Answer in your own words, cite the source URLs, prefer primary sources, and
   cross-check consequential claims against a second independent source.

## Gotchas

- A `429` means the rate limit was hit: back off, honor `Retry-After`, and tell the user
  that an API key removes the hourly cap.
- Clients with their own web search (Claude Code's `WebSearch` and `WebFetch`, Codex's
  `web_search`) keep reaching for it while Keenable is installed. Turn the built-in tool
  off in the client to make Keenable the only search: see
  https://docs.keenable.ai/mcp-server.

Full documentation: https://docs.keenable.ai (index for agents: https://docs.keenable.ai/llms.txt).
