> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keenable.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Mastra

> @keenable/mastra — keenable-search and keenable-fetch tools for any Mastra agent.

*Tool package*

`@keenable/mastra` — `keenable-search` and `keenable-fetch` tools for any Mastra agent.

→ [@keenable/mastra on npm](https://www.npmjs.com/package/@keenable/mastra)

<video controls poster="https://app.keenable.ai/integrations/mastra.jpg" src="https://app.keenable.ai/integrations/mastra.mp4" style={{ width: '100%', borderRadius: '12px' }} />

npm install, then `createKeenableTools().keenableSearch` returns live web results in Node.

## Install

### Install

```bash theme={"dark"}
npm install @keenable/mastra
```

### Use the tools

`@mastra/core` and `zod` are peer deps (already present in a Mastra project).

```typescript theme={"dark"}
import { createKeenableTools } from "@keenable/mastra";

const tools = createKeenableTools(); // reads KEENABLE_API_KEY; or { apiKey: "keen_..." }
// exposes the tools `keenable-search` and `keenable-fetch`
```

<Note>
  Set `KEENABLE_API_KEY` or pass `{ apiKey }` to authenticate — this removes the hourly request cap. Without a key, calls run on the shared public tier at [lower rate limits](/rate-limits).
</Note>
