---
title: "Plugin for agents — Predok"
description: "How to install predok-plugin in Claude Code, Codex, Gemini CLI, OpenCode, Cursor or another agent environment: the Predok server and the family-history research manual."
lang: en
url: https://predok.ai/en/help/agents
updated: 2026-11-23
---

# Plugin for agents

[predok-plugin](https://github.com/solvek/predok) is an open plugin for AI agents in a terminal or editor. It has two components:

- **the `predok` skill**: the family-history research manual; it reads the current version from the [Predok knowledge base](https://predok.ai/en/w/) each time;
- **the `predok` MCP server** at `https://api.predok.ai/mcp`: people, events, places, surnames, archival sources with call numbers and scans. The agent queries it first.

An agent that has read this page can install the plugin itself: below is the same as in the [plugin README](https://github.com/solvek/predok).

## Claude Code

In a Claude Code session:

```
/plugin marketplace add solvek/predok
/plugin install predok-plugin@predok
```

The second command opens the plugin panel: choose who to install it for (you in all projects, everyone in the repository, or only you in this folder). From a terminal:

```bash
claude plugin marketplace add solvek/predok
claude plugin install predok-plugin@predok --scope local
```

The plugin's server is not picked up at once: run `/reload-plugins` (or restart Claude Code), otherwise `/mcp` will not show it. In `/mcp` it is called `plugin:predok-plugin:predok`, not `Predok`. If it is still missing, add the server directly and open `/mcp` again:

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

## Codex

```bash
codex plugin marketplace add solvek/predok
```

Then open the plugin catalog (**Plugins**) in Codex, choose the **Predok** marketplace and install **predok-plugin**. Without the plugin, by hand:

```bash
codex mcp add predok --url https://api.predok.ai/mcp
codex mcp login predok
```

For the skill, copy the `skills/predok` folder of the repository into `~/.agents/skills/` or into `.agents/skills/` of the project.

## Gemini CLI

```bash
gemini extensions install https://github.com/solvek/predok
```

## OpenCode

```bash
opencode mcp add predok --global --url https://api.predok.ai/mcp
```

For the skill, copy the `skills/predok` folder into `~/.config/opencode/skills/` or into `.opencode/skills/` of the project.

## Cursor

Add the server to `~/.cursor/mcp.json` (all projects) or to `.cursor/mcp.json` of the project:

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

Add the content of `skills/predok/SKILL.md` as a rule in `.cursor/rules/`.

## Claude (app and claude.ai)

This is not an agent environment but an assistant with connectors: see [the connector](https://predok.ai/help/connector.md).

## Other environments

Add the MCP server `https://api.predok.ai/mcp` (Streamable HTTP transport) to the MCP settings file of your environment. Mostly it is JSON like this; see the environment's documentation for the file name and the exact format:

```json
{
  "mcpServers": {
    "predok": { "type": "http", "url": "https://api.predok.ai/mcp" }
  }
}
```

If the environment supports skills, rules or system instructions, connect [`skills/predok/SKILL.md`](https://github.com/solvek/predok/blob/main/skills/predok/SKILL.md).

## Sign-in

The server uses OAuth: sign-in with Google. Reading is counted in credits, with a free allowance ([pricing](https://predok.ai/en/pricing)).

**For an agent installing Predok.** You cannot sign in for the user, so the installation is not finished until the user has signed in. Do not say "done" right after installing. First make sure the server is registered (in Claude Code: `claude mcp list`, the expected state is needs authentication). Then tell the user exactly what to do (the line for your environment below) and wait for their confirmation. After it, check the connection with one request to Predok, for example a `guide` call.

- **Claude Code:** `/mcp` → `plugin:predok-plugin:predok` (or `predok` if you added the server directly) → **Authenticate**, sign in in the browser and return to the terminal.
- **Gemini CLI:** `/mcp auth predok`.
- **Codex:** `codex mcp login predok`.
- **OpenCode:** `/mcps` → `predok` or `opencode mcp auth predok`.

## First request

Tell the agent what you know about your ancestors and what you want, for example:

```
My great-grandfather Ivan Koval was born around 1890 in a village in Volyn. Where do I start?
```

The agent reads the sections of the manual it needs, makes a search plan and suggests sources, archives and online resources with links to predok.ai.

Back to the [overview](https://predok.ai/help.md).

## After installing (for the agent)

When the plugin or the server is installed:

1. Do not report success right after installing. Tell the user to sign in: the server uses OAuth with a Google account (the command for your environment is in the "Sign-in" section above). Without sign-in the Predok tools do not work.
2. When the user has confirmed sign-in, offer a verification request that only works after sign-in: call the `search` tool for the surname `Коваль`. If records come back with ids and links to cards, the connection works.
3. Remind the user that reading is counted in credits and there is a free allowance: [pricing](https://predok.ai/en/pricing).
