Diurna MCP
Connect your coding agent to Diurna's hosted MCP server at POST /api/mcp.
Full copy-paste setup for every assistant is on Add Diurna to your agent. Starter research prompts are on Starter prompts.
Authentication
Create a key in Settings. The secret is shown once. Use X-Api-Key or DIURNA_API_KEY in the environment. Never put the secret in a query string.
- Click Add to Cursor or paste the deeplink. Cursor asks before installing.
- For account tools, set
DIURNA_API_KEYin your environment. Cursor substitutes${env:DIURNA_API_KEY}in the header. - For browser sign-in, use the OAuth config with no API key in the install payload.
- Public catalog tools answer without a key. Do not put the secret in the JSON file.
{
"mcpServers": {
"diurna": {
"type": "http",
"url": "https://trydiurna.com/api/mcp",
"headers": {
"X-Api-Key": "${env:DIURNA_API_KEY}"
}
}
}
}Endpoint: POST /api/mcp
For tools that support API keys, use a key from Settings. Connect your MCP client to this host's /api/mcp path. Directory tools are list_members, get_member, list_committees, and get_committee. Those tools require the Team plan. Local meeting tools are list_local_meetings and get_local_meeting. list_source_registry lists monitored sources and their health. It is public. Payment is not required. Local meetings are free to read. Each meeting, agenda item, minute file, and roll-call vote includes citation and source_url. list_bill_amendments lists the statute sections a stored bill changes. Each row includes citation and source_url. The old and new text comparison requires a plan that includes redlines.
Private matter and review reads
list_client_matters, get_client_matter and get_client_reviews require an existing verified account session with access to the requested organization. API keys and bearer tokens are rejected for these tools, including when sent alongside a session. An organization or matter ID does not grant access.
Use tools/list to see which tools this host exposes for your session. Matter tools appear only when your organization has matter access; review reads also require the review feature. If a tool is not listed or is disabled, tools/call returns unavailable.
The following request body is for a client already using its authorized account session. Replace the example UUIDs with IDs that account can access. Do not put session cookies in tool arguments, prompts or logs.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_client_reviews",
"arguments": {
"organizationId": "11111111-1111-4111-8111-111111111111",
"matterId": "22222222-2222-4222-8222-222222222222"
}
}
}This reads the queue. Continue it with the returned nextCaseId as after. For one case, supply caseId; continue its history with nextBeforeSequence as before. Do not combine after with caseId or use before without a case. Discovery accepts organizationId, optional boardId, limit (1-50, default 20), and cursor from nextCursor; board-filtered discovery does not accept a cursor. Matter detail accepts an optional positive revision.
These tools only read private context and history. They do not record decisions, confirm human approval, export client artifacts or activate monitoring. Responses are private and must not enter public caches or shared agent memory. The API-key bridge and connector examples do not supply account-session authentication for these tools.
Automation triggers
Team accounts can send changes.recorded events to Zapier, n8n, or any HTTPS endpoint. See legislation change webhooks.
Research tools
When enabled on this host, tools/list includes maintained surveys, saved research watches, watchlist and template imports, and private research-source intake. Each tool authenticates the original request credentials. Actor IDs in arguments and another tool's output cannot grant access. Disabled tools stay hidden and return unavailable.
Survey and watch tools can prepare research copies and drafts. Human research review stays in the signed-in app; no MCP tool grants human approval or approved client export. Imports require the user's selected rows and explicit confirmation. External discovery requires an explicit public-query request. Candidate sources and customer uploads never become trusted official-corpus evidence through a tool call.