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

# MCP server

> Give any agent Sage's decide and extract as tools.

For agents that make the call themselves while they work. To have a coding agent build Sage into your app, use the [skills](https://docs.levanto.ai/integrations/skills.md) instead.

Add it to your agent's MCP config:

```json theme={"theme":"github-light"}
{
  "mcpServers": {
    "levanto": {
      "command": "npx",
      "args": ["-y", "levanto@latest", "mcp"],
      "env": { "LEVANTO_API_KEY": "lv_live_..." }
    }
  }
}
```

In Claude Code:

```bash theme={"theme":"github-light"}
claude mcp add levanto -e LEVANTO_API_KEY=lv_live_... -- npx -y levanto@latest mcp
```

In Goose, add it to `~/.config/goose/config.yaml`:

```yaml theme={"theme":"github-light"}
extensions:
  levanto:
    enabled: true
    type: stdio
    name: levanto
    cmd: npx
    args: [-y, levanto@latest, mcp]
    envs:
      LEVANTO_API_KEY: lv_live_...
    timeout: 300
```

It needs Node.js 18 or newer.

## Tools

| Tool | Does |
| - | - |
| `decide` | Yes/no, choice, scale, sort or tags, with a probability. Takes text or a file: text, PNG, JPEG or WebP. Optional reasoning and web search. |
| `extract` | Typed fields from text or a text file: text, numbers, money, dates, times, durations. Each value comes with the text it was read from. |

A `null` answer means Sage isn't sure. Long documents can be passed as a file path, so the agent doesn't read them into its context. Calls are billed like the [API](https://docs.levanto.ai/pricing.md).

Source: [github.com/levantolabs/levanto-cli](https://github.com/levantolabs/levanto-cli).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.