---
title: MCP and API
description: Build, fill and read Biviu tables from Claude, Claude Code or Codex over MCP, or from your own code over the REST API.
order: 4
---

Claude, Claude Code and Codex can build, fill and read your tables over MCP. Your own code can do the same over the REST API. Both use the same 12 tools, and fills spend your credits as they do in the app.

## Connect Claude

The MCP server's URL:

```
https://app.biviu.com/mcp
```

In Claude.ai or the Claude app:

1. Open Settings, Connectors, Add custom connector.
2. Name it Biviu, paste the URL above, and click Connect.
3. Sign in to Biviu and click Allow.

The connector shows up in the desktop and mobile apps too.

In Claude Code, add the server, then type `/mcp`, pick `biviu` and sign in:

```bash
claude mcp add --transport http biviu https://app.biviu.com/mcp
```

## Connect Codex

Add the server, then sign in:

```bash
codex mcp add biviu --url https://app.biviu.com/mcp
codex mcp login biviu
```

## Try it

Ask your agent:

> Use Biviu to find 20 seed-stage database startups and rank them on open source and hiring.

It creates the table, adds the searches, columns and rows, fills the cells and reads back the ranked rows, with a link to the table in Biviu.

A fill started over MCP or the API runs at once. There is no Fill card to approve. Each filled cell costs 1 credit, as always.

## API keys

Make a key in the app under Settings, Claude & API. Keys start with `biviu_`. A key acts as you, so keep it secret.

Send it as a Bearer token:

```
Authorization: Bearer biviu_…
```

or in the `x-api-key` header. MCP clients that can't sign in can send a key the same way. A request without a valid key gets a 401.

## The REST API

JSON in, JSON out. The base URL:

```
https://app.biviu.com/api/v1
```

`GET /api/v1` lists every endpoint and its fields, and needs no key.

A table is built in five steps:

1. Create the table.
2. Add searches and the columns that read them.
3. Add rows.
4. Start the fill.
5. Poll the table until the fill ends, then read the ranked rows.

Create a table:

```bash
curl https://app.biviu.com/api/v1/tables \
  -H "Authorization: Bearer $BIVIU_KEY" \
  -d '{"query": "seed-stage database startups", "description": "Seed-stage database startups. Each row is one company."}'
```

The description says what each row is. Every search and score reads it.

Add searches and columns in one call:

```bash
curl https://app.biviu.com/api/v1/tables/$TABLE_ID/nodes \
  -H "Authorization: Bearer $BIVIU_KEY" \
  -d '{"nodes": [
    {"name": "usage", "type": "web_search",
     "question": "How many GitHub stars and production users does this database have?",
     "query": "{name} database GitHub stars production users"},
    {"name": "license", "type": "web_search",
     "question": "What license is this database under, and what paid plans does it list?",
     "query": "{name} database license pricing"},
    {"name": "adoption", "type": "score", "inputs": ["usage"],
     "rule": "How widely adopted is this database?",
     "criteria": ["No sign of use", "A side project with a few hundred stars", "Thousands of stars and a few named users", "Tens of thousands of stars and many named users", "Used in production by large companies"]},
    {"name": "open source", "type": "noul", "inputs": ["license"], "rule": "Is it open source?"},
    {"name": "cheapest plan", "type": "answer", "inputs": ["license"],
     "question": "What is the price of the cheapest paid plan of this database, e.g. $49/mo?"}
  ]}'
```

What each type needs:

| Type | Fields |
| --- | --- |
| `web_search` | `question`, and `query`: keywords with `{name}` where the row's name goes |
| `score` | `inputs`, `rule`, and `criteria`: exactly 5 levels, worst first |
| `noul` | `inputs`, and a yes/no `rule` |
| `answer`, `url`, `location`, `website` | `inputs` and `question` |

`inputs` names one to five searches, already in the table or in the same call. A table has at most one `website`. [Columns](/docs/columns) explains each type.

Unknown fields and values outside a limit get a 400 that says what to fix.

## The tools

| Tool | REST | What it does |
| --- | --- | --- |
| `list_projects` | `GET /projects` | Your projects, and which one is current |
| `list_tables` | `GET /tables` | The tables in a project, newest first |
| `create_table` | `POST /tables` | Create an empty table from a query and a description |
| `get_table` | `GET /tables/:table_id` | Name, description, searches and columns, the graph as a Mermaid flowchart, counts, fill progress and credits left |
| `get_rows` | `GET /tables/:table_id/rows` | Ranked rows, best first, 20 a page by default and at most 100; answers, sources and what each search found on request |
| `add_rows` | `POST /tables/:table_id/rows` | Add rows, each a name and an optional link; skips names already taken |
| `add_nodes` | `POST /tables/:table_id/nodes` | Add searches and the columns that read them |
| `delete_rows` | `DELETE /tables/:table_id/rows` | Remove rows by id |
| `delete_nodes` | `DELETE /tables/:table_id/nodes` | Remove columns and searches; the table reranks |
| `set_table_metadata` | `PATCH /tables/:table_id` | Set the table's name and description |
| `fill_cells` | `POST /tables/:table_id/fill` | Fill the empty cells in the background; spends credits |
| `stop_fill` | `DELETE /tables/:table_id/fill` | Stop the fill; filled cells stay charged |

Only one fill runs at a time per table. Starting another gets a 409.
