Developers & AI agents

Everything a team member can do in Segui, an AI agent or script can do too, through the same rules and only inside your workspace. Segui offers a remote MCP server for AI agents and a REST API with an OpenAPI spec. Agents can also read llms.txt.

Authentication

An admin opens Settings → API & AI agents and clicks Connect agent. Segui creates an API key (sgi_…), shows it once and shows the setup for your tool with the right URL. Send it with every request:

Authorization: Bearer sgi_…

Quickstart

The API lives at https://api.segui.app. The first call lists the inquiries whose next step is due, the second creates an inquiry whose next step is due on 1 October (reminderOn is the date of the next step).

curl -H "Authorization: Bearer $SEGUI_API_KEY" https://api.segui.app/api/v1/inquiries/due

curl -X POST https://api.segui.app/api/v1/inquiries \
  -H "Authorization: Bearer $SEGUI_API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: form-4711" \
  -d '{"familyName":"Muster","firstName":"Anna","email":"anna@example.com","reminderOn":"2026-10-01"}'

MCP setup

The MCP endpoint is https://api.segui.app/mcp (Streamable HTTP, stateless; protocol 2026-07-28 and the earlier 2025 versions).

Claude Code

claude mcp add --transport http segui https://api.segui.app/mcp --header "Authorization: Bearer sgi_…"

Claude Desktop and claude.ai

Settings → Connectors → Add custom connector. URL https://api.segui.app/mcp, header Authorization: Bearer sgi_….

Codex

# ~/.codex/config.toml
[mcp_servers.segui]
url = "https://api.segui.app/mcp"
bearer_token_env_var = "SEGUI_API_KEY"

Hermes

# ~/.hermes/config.yaml
mcp_servers:
  segui:
    url: "https://api.segui.app/mcp"
    headers:
      Authorization: "Bearer sgi_…"

Other MCP clients

{"mcpServers": {"segui": {"type": "http", "url": "https://api.segui.app/mcp",
  "headers": {"Authorization": "Bearer sgi_…"}}}}

Tools and endpoints

Every MCP tool is also a REST endpoint under /api/v1. Resources: segui://workspace, segui://pipeline, segui://team, segui://due-today.

The next step of an inquiry is its first timeline step that is neither done nor skipped. Its date is the reminder: that day the inquiry shows up in Today and in the notifications of the people assigned. set_reminder sets the date of the next step, clear_reminder removes it, list_due_today lists the inquiries whose next step is due (overdue first), and reminderOn on an inquiry is the same date. Tasks are separate internal to-dos, not part of the timeline.

Conventions

OpenAPI

The full spec is served at https://api.segui.app/api/v1/openapi.json and is generated from the same definitions as the MCP tools.