Skip to main content

Agents and MCP

Give agents controlled metadata tools instead of unconstrained shell or SQL access. The MCP surface is read-only and contains no raw SQL, filesystem-path, payload, or mutation tool.

Start the MCP server

pip install 'metawarc[mcp]'
metawarc mcp --dbfile collection.db # stdio
metawarc mcp --dbfile collection.db --transport http # loopback only by default

Wire the stdio command into your MCP client (Claude Desktop, Cursor, and similar).

Allowlisted tools

ToolPurpose
list_archivesRegistered WARC archives and catalog status
list_recordsRecord metadata with typed filters
get_record_metadataOne indexed record by archive ID and WARC record ID
get_record_headersStored HTTP headers for one record

Non-loopback MCP transport requires --allow-insecure.

See MCP integration and mcp. For HTTP access with replay, use the REST API instead.