MCP Server
Connect to the hosted server at https://mcp.captain.dev/mcp: nothing to
install, nothing to keep updated.
Connect
Pick your coding agent below and add the server to it. The first time the agent connects, it opens a browser window where you sign in to Captain. On the approval page you choose which organization the connection belongs to and what it is allowed to reach: the environments it can use (development, staging, and production) and whether it is allowed to write. Once you approve, the agent is connected and ready to use.
Every tool accepts an optional environment argument, so a single connection
can work across all of the environments you approved without reconnecting. If
you want to change the organization or the scope later, simply reauthenticate.
Try it
Once the server is connected, talk to your agent normally:
What you get
70 tools, grouped below by what they do. Every tool name is clickable in most MCP clients’ tool pickers; this table is the same information laid out for scanning.
Search and collections
Indexing
Every indexing tool also takes custom_metadata, mask_pii (mask detected
personal data before embedding; a report is kept on the job), max_files,
skip_existing, overwrite_existing, transcription_language, and
parsing_script where the endpoint supports them. captain_index_r2 takes the
bucket’s jurisdiction, including us for US data residency, and
captain_index_s3 accepts a cross-account IAM role instead of keys. In
single-file mode, the S3, GCS, Azure, R2 and Dropbox tools also take
source_identity: a stable identity for the document that is independent of
where the object is read from, so indexing the same content from another
location updates the same document instead of creating a second one.
Syncs
A sync keeps a collection aligned with a cloud-storage bucket: it backfills, reconciles on a schedule, can listen for real-time events, and propagates deletions.
Chunks
Jobs
Query history
The queries your agents have run in the environment named on the call. Use them to see what an agent actually asked and what came back.
Evaluation
Measure how well a collection retrieves the right documents, and compare query
configurations on the same questions. captain_eval runs the questions from the
client and scores them in the conversation; the other three hand the set to
Captain as a job that keeps every answer.
The Evaluation API accepts API keys only in v1, so its three tools need a connection authenticated with a key rather than by signing in. Point an entry at the same hosted URL with a Captain API key as a bearer token, and the evaluation tools become available on it:
The key implies its organization and environment, so a key-authenticated entry takes no consent step. The other tools on this page work over either kind of connection.
Evaluations covers the case-set format, scoring, limits and billing. Compare Query Configs walks through the client-side loop.
Environments
A moved collection is reachable through the same connection by naming the new
environment in the environment argument every tool accepts. Attached syncs
do not follow it.
Project notes
Integration wizard
captain_wizard writes Captain into your codebase. It
reads Captain’s own agent docs at
llms.txt as the source of truth for the
current API surface, covering indexing calls, search wiring, collection setup,
and auth, then applies the changes for a task you describe. The first time you
run it, it asks permission to send de-identified feedback about the integration
(friction, missing capabilities, confusing docs) to Captain’s
feedback endpoint.
No API key, no code, no personal data. Decline it if you prefer, and change the
answer later at any time.
Local install (deprecated)
The local stdio build (npx @captain-sdk/captain-mcp) is deprecated and no
longer maintained. New tools and fixes ship only to the hosted server, so local
installs will fall behind. The one thing it still does that the hosted server
cannot is let captain_index_file read local filesystem paths. The hosted
server takes urls or inline base64 files instead.
If you still need it, your client launches it with npx and it reads
CAPTAIN_API_KEY from the environment:
Links
- npm package
- Source on GitHub
- Model Context Protocol
- OpenClaw & Hermes for agent runtimes outside the MCP client ecosystem