fds-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@fds-mcp Who has to answer a freedom-of-information request about the city of Bonn, and under which act?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
fds-mcp — FragDenStaat.de for AI assistants
An MCP server for FragDenStaat.de, the German freedom-of-information platform built on froide.
Prepare a German freedom-of-information request by asking for it in plain language. Your assistant finds the authority that has to answer and proves why it is the right one, names the act that applies and the deadline it sets, tracks the requests you already sent, collects the replies and their attachments, and writes a new request to a local file that you read before anything leaves your machine.
What is MCP, and what does it do here?
MCP, the Model Context Protocol, is the standard that
lets an AI assistant use outside tools — roughly what an extension does for a browser.
fds-mcp is one such tool. Install it once and Claude, or any other MCP client, gains 15
tools that speak to FragDenStaat.de, the German
freedom-of-information platform built on froide.
Four of them need no account and no token: searching authorities, reading an act, and working out who is responsible for a given place all work straight away.
Other froide instances
froide is the Django software underneath FragDenStaat.de, and its own README names a second production portal: fragdenstaat.at. Point this server at one with
export FDS_MCP_BASE_URL=https://fragdenstaat.atOnly https origins without a path or credentials are accepted, and the host allowlist that
keeps the bearer token from following a link to a stranger is derived from this value — so
with .at configured, fragdenstaat.de is a foreign host and is refused.
What that buys you, measured against fragdenstaat.at on 2026-09-05 and kept as live tests:
| work, with no account |
| cannot work there — |
the token-bound tools | need an OAuth application registered on that instance |
the pre-send rule set | encodes German FOI law and is not portable. Treat submitting through another instance as unverified |
What it looks like
You: Who has to answer a freedom-of-information request about the city of Bonn, and under which act?
The assistant calls
check_jurisdiction("Bonn"), gets the region chain andKommunalverwaltung Bonn(authority 3495), thenget_authority(3495)for the acts that apply and their deadlines — and reports the API URLs it used, so you can check the answer instead of believing it.
Submitting is possible too, but it is deliberately the hardest thing this server does.
⚠️ POST /api/v1/request/ sends immediately and irreversibly
FragDenStaat's REST API has no draft mode, no preview and no undo. The moment a
POST /api/v1/request/ succeeds, the e-mail is on its way to the authority, the request
is public (by default) under CC0, and it cannot be recalled.
Worse, MakeRequestSerializer has no law_type field. The API therefore always
files under publicbody.default_law, and because froide sorts by ("-meta", "-priority")
that is almost always the combined meta act — not the specific act you meant. For a
municipality in Rhineland-Palatinate, asking for the LTranspG (law 16) through the API
silently files under "LTranspG, VIG" (law 18) instead.
Because of this, the recommended exit of this server is build_submit_url, which
hands you a prefilled web form with the correct law_type and lets you press send
yourself. submit_request exists, defaults to dry_run=True, and refuses unless five
independent gates all agree — see Safety model.
Related MCP server: German Law MCP Server
Documentation
What the API can and cannot do — every limit we hit, how we measured it, the dead ends we tried, and the mistakes we made along the way
OAuth setup, with screenshots — registering the application, scopes, the redirect-URI rules, and what to do when the local HTTPS listener is blocked
README.de.md and docs/oauth-setup.de.md — the same documents in German. US English is the source; the German version follows it.
Installation
pip install fds-mcpOr run it without installing anything, straight from PyPI:
uvx fds-mcp serveFrom a checkout, for development:
git clone https://github.com/notDIRK/fds-mcp.git
cd fds-mcp
pip install -e ".[dev]"Requires Python 3.10 or newer.
Register it with your MCP client
The server speaks stdio. For Claude Code:
claude mcp add fds -- fds-mcp serveFor a client that reads a JSON config:
{
"mcpServers": {
"fds": {
"command": "fds-mcp",
"args": ["serve"]
}
}
}Or without installing it at all:
{
"mcpServers": {
"fds": {
"command": "uvx",
"args": ["fds-mcp", "serve"]
}
}
}The four green tools work immediately, with no account and no token.
OAuth setup
The yellow and red tools need an OAuth 2.0 bearer token. FragDenStaat supports exactly
two authentication schemes for its API — OAuth2 and session cookies. There is no
personal API key and no Basic Auth (froide's own docs/api.rst claims otherwise; it is
out of date).
1. Register an application
Log in and open https://fragdenstaat.de/account/applications/register/. All account
pages are protected by recent_auth_required, so you may be asked for your password
again.
Field | Value |
Name | anything, e.g. |
Client type |
|
Authorization grant type |
|
Redirect URI |
|
Only the schemes https and fragdenstaat are accepted. http://localhost/... is
rejected at registration time — this is OAUTH2_PROVIDER.ALLOWED_REDIRECT_URI_SCHEMES on
the server. That is why the default redirect is an HTTPS loopback listener with a
self-signed certificate that fds-mcp generates for you (via openssl), and why the
fallback is fragdenstaat://callback with a manual paste.
2. Configure and log in
fds-mcp configure --client-id <your-client-id>
fds-mcp loginlogin runs Authorization Code + PKCE (S256), opens your browser, and catches the
redirect on https://localhost:8765/callback. Your browser will warn about the
self-signed certificate — that is the local listener; accept it.
Without a browser or without openssl:
fds-mcp login --manual # uses fragdenstaat://callback, you paste the URL backTokens land in ~/.config/fds-mcp/tokens.json with mode 0600. Refresh happens
automatically; refresh tokens are valid for 180 days.
fds-mcp status # config, token and throttle state
fds-mcp whoami # the authenticated account
fds-mcp logout --revokeScopes
fds-mcp requests read:user read:request make:request by default. Override with
fds-mcp configure --scopes "read:user read:request" if you never want to submit.
Scope | Needed for |
| identifying your own account ( |
| your own, including non-public, requests |
|
|
| documenting postal mail (not yet implemented) |
Nothing here grants deletion. If you drop make:request, submit_request can never
work, and everything else still does.
Tools
Tool | Tier | Auth | Side effect |
| 🟢 green | none | none |
| 🟢 green | none | none |
| 🟢 green | none | none |
| 🟢 green | none | none |
| 🟡 yellow | token, read only | none |
| 🟡 yellow | token, read only | none |
| 🟡 yellow | token, read only | none |
| 🟡 yellow | token, read only | none |
| 🟡 yellow | token, read only | writes a local file |
| 🟡 yellow | token, read only | none |
| 🟡 yellow | token, read only | writes a local YAML file if |
| 🔴 red | none | writes a local YAML file, no network at all |
| 🔴 red | none | reads the API for L01–L05 |
| 🔴 red | none | writes a local |
| 🔴 red | token + | sends the request, irreversibly |
| 🔴 red, opt-in | a logged-in browser profile | sends the reply, irreversibly |
All four red tools take dry_run: bool = True.
send_reply_via_browser is the sixteenth tool and is not registered unless
FDS_MCP_BROWSER_SEND=1 is set. Without that variable it does not appear in the tool
list at all. Read Sending replies before you switch it on.
check_jurisdiction returns its evidence
It walks /georegion/?name=<place> up its part_of chain and asks
/publicbody/?regions=<id> at every level, then returns the region chain, the matching
authorities, and the list of API URLs it used. That matters in Rhineland-Palatinate,
where an Ortsgemeinde is often not listed on FragDenStaat at all while the
Verbandsgemeindeverwaltung that administers it is.
build_submit_url is two-step for long requests
Measured on 2026-09-05: fragdenstaat.de answers GET URLs above roughly 4096 bytes
with HTTP 400 (4086 bytes → 200, 4106 bytes → 400). A typical 4000-character request
exceeds that once URL-encoded. Above the limit the tool returns a short URL that prefills
subject and law_type, plus the body in a .body.txt file next to your draft, which you
paste into the form.
What FragDenStaat's API cannot do
These are frontend-only, with no REST equivalent. The server does not pretend otherwise:
replying to an authority —
POST /api/v1/message/only creates postal messages (OnlyPostalMessagesWritable), andsubject/contentare read-only serializer fields. E-mail replies go through/anfrage/<slug>/send/message/, a CSRF-protected Django view that ignores bearer tokens. See Sending replies;choosing the legal basis — no
law_typein the serializer;drafts —
RequestDraftis not registered in the API router;setting status, resolution, tags or the law after the fact; publishing a request; filing an objection or escalating to the state information commissioner.
Sending replies
An e-mail reply to an authority cannot be sent through the FragDenStaat API. Not with
a different payload, not with an extra scope, not with a better token. Three
measurements, taken on 2026-09-05 and kept honest by tests/test_api_contract.py:
POST /api/v1/message/withkind: "email"answers HTTP 400 and reports, under the keykind: "Nachrichten dieser Art können nicht über die API erstellt werden." That is froide'sOnlyPostalMessagesWritable.The identical call with
kind: "post"also answers 400 — the probe deliberately carries an unresolvable request URI, so nothing can be created either way — but it carries nokinderror. That is the calibration. Without it the first measurement would prove nothing: a 400 could just as well come from the invalid URI, from the endpoint refusing every POST, or from a missing scope.POST https://fragdenstaat.de/anfrage/<slug>/send/message/answers HTTP 302 to/account/login/— identically with and without a bearer token, same status, sameLocation. The web view is session + CSRF only. OAuth is not a way around point 1.
So the honest answer is: a human sends the reply. build_reply_draft is what makes that
short.
build_reply_draft
Looks the request up, validates your text, and hands back the finished message, a subject
in froide's own format (AW: <title> [#<id>]) and the URL of the form. It writes nothing
to the network — there is no argument that makes it send.
A follow-up is validated differently from a request, and the difference is easy to get
wrong. froide frames a new request with the act's letter_start/letter_end; it does not
frame a follow-up at all. The textarea arrives prefilled with
Guten Tag,
…
Mit freundlichen Grüßen
<your name>and exactly what stands in it is what the authority receives. Hence:
R19requires a salutation and a closing formula, each exactly once — the inverse ofR10, which forbids both while the frame is in play;R04rejects the placeholder…(U+2026) that is sitting in that form right now. It is the single most likely mistake on this path;R06keeps e-mail addresses and IBANs out of a thread that is public and CC0;the subject is capped at 230 characters.
Every result carries one more warning, unconditionally: the form has your postal address prefilled, behind a checkbox labelled "Adresse mitsenden". On a public request, ticking it publishes where you live, under CC0, permanently. Leave it unticked unless the authority has explicitly asked for your postal address.
send_reply_via_browser — optional, off by default
There is a way to automate the last step anyway: drive the form in a browser that carries
your logged-in session. This server can do that, and it is not switched on. It is
registered only when FDS_MCP_BROWSER_SEND=1 is set, and it needs an extra:
pip install 'fds-mcp[browser]'
python -m playwright install chromium
export FDS_MCP_BROWSER_SEND=1It never composes text. It sends the subject and body of a reply draft file that
build_reply_draft wrote and a human then approved — there is no other input it takes.
Five gates:
the file is a reply draft with
status: approved, andsend_addressis false;no
ERRORfinding is open under the follow-up rules;confirmation_tokenmatches, byte for byte, the token a human wrote into the file;the local ledger says another message stays inside
2/5min,6/6h,8/24h. froide does not enforcemessage_throttleon this path in a way we can rely on, so this brake is voluntary;in the form itself: "Adresse mitsenden" is off, the recipient can be read and is reported, subject and message read back byte for byte after being typed, no U+2026, and exactly one salutation and one closing formula. Anything it cannot find, it treats as a failure — a form that changed shape is a form it must not press buttons in.
Afterwards it asks the API whether a new message actually exists on the request. If none
does, the outcome is reported as unconfirmed and the draft is not marked sent.
Unclear is not failure and it is not success.
What you are accepting when you switch this on
Browser automation defeats the principle that a human performs the last action. Every other exit in this server ends with a person clicking send. This one does not.
Next to a general-purpose file-writing tool, gates 1 and 3 are not gates. They are two values in a YAML file on your disk. No tool in this server can set either —
build_reply_draftalways writesstatus: draftand the placeholder token. But most MCP hosts also give the model awrite_filetool, and a model that can write files can writestatus: approvedand a token of its own choosing. Combine that with a prompt injection out of an authority's reply — text this server reads and labels as untrusted, but still puts in front of the model — and post to a public authority goes out with no human in the loop. It cannot be recalled.The browser carries a logged-in session of yours. A malfunction acts with your full rights on fragdenstaat.de: your requests, your account pages, your address.
Countermeasures, in order of effectiveness:
leave the feature off. Unset
FDS_MCP_BROWSER_SENDand the tool does not exist.use a separate browser profile with no other logins, via
FDS_MCP_BROWSER_PROFILE. The session in that profile is the blast radius.put the draft directory out of reach of your other tools with
FDS_MCP_DRAFT_DIR. Gates 1 and 3 are only worth something while nothing else can write that file.keep
dry_run=Truein normal use. It fills the form and stops before the click.
Safety model
Seven rules are enforced in code, not merely documented. Each has tests in
tests/test_security_gates.py that prove it bites.
submit_requestaborts unless the draft'sstatusisapproved— a human sets that.It aborts while any
ERRORfinding is open.It aborts when
law.wunsch_id != law.api_default_id, because the API cannot setlaw_typeand would file under the wrong act.It aborts unless
confirmation_tokenmatches, byte for byte, the token a human wrote into the draft file. A tool must not invent that token.Every red tool has
dry_run: bool = Trueas its default.A local ledger checks
5/5min,6/6h,10/24h,20/7dbefore any POST and aborts with a clear message instead of retrying. FragDenStaat's terms of use B.1.4 lock an account for a month for attempting to circumvent the limits.The HTTP client refuses every non-GET method unless
allow_write=Truewas set explicitly. Only one function in the package ever sets it.
send_reply_via_browser has its own chain of five, listed under
Sending replies, with tests in tests/test_browser_send.py. It also
has a gate the others do not need: rule 0, the tool is not registered at all unless
FDS_MCP_BROWSER_SEND=1.
The rule set
Offline rules R01–R19 reproduce what froide's web form enforces — which is
considerably more than the REST API validates. Live rules L01–L06 check against the
API: the authority exists and still has that name, the desired law is actually offered,
the recomputed API default matches what the draft claims, no duplicate request exists,
no sentence of your text is already in the law's own letter template, and the finished
letter contains every element it should.
Notable ones:
R06refuses e-mail addresses and IBANs in the body. Public requests are CC0 and visible to everyone — do not put other people in them.R10treats a salutation or a closing formula as an error whenfull_text=false: froide frames the text itself with the law'sletter_start/letter_end, so writing either yourself sends a doubled greeting.R12is an error forsubmit_via: apiand only a hint forsubmit_via: web_form— the web form can choose the act, the API cannot.R18andL06check the letter the authority receives, not the body you wrote. Withfull_text=falsethe act'sletter_start/letter_endsupply part of the text, so an element may come from either side;L06fetches the frame and reports what neither half supplies. Six elements: legal basis (the onlyERROR), cost pre-notification, cost cap, deadline, forwarding when the body is not responsible, electronic reply.The cost cap is why this exists. A real request went out without one, because the LTranspG
letter_enddoes ask to be told the expected costs but names no ceiling and no fallback to free inspection on the premises. Everything else was covered by the template, which is exactly why reading the body alone found nothing.R19is the inverse ofR10and applies only to follow-ups — see Sending replies.
Where the server is allowed to write
Three tool arguments are file paths chosen by the model, and the same model reads authority replies and attachments — text written by third parties. So the paths are constrained rather than trusted:
draft paths must end in
.yaml/.yml, are resolved before they are checked (a symlink is judged by its target), andsave()refuses to overwrite a file that is not itself a draft;download_attachmentwill not create a directory, and the attachment's file name is stripped to its basename with everything outside[A-Za-z0-9._ -]replaced;attachments are only ever fetched from
fragdenstaat.deandmedia.frag-den-staat.de, and the bearer token is never sent anywhere else.
Four environment variables tighten this further, and are recommended whenever the server runs unattended:
Variable | Effect |
| every draft path must stay inside this directory ( |
| every |
|
|
| browser profile directory for that tool. Point it at a profile logged in to fragdenstaat.de and nothing else |
Results that carry third-party text (get_messages, get_request,
list_attachments, download_attachment) name those fields in an
untrusted_content key. They are data. They do not choose file paths, URLs, tool calls
or confirmation tokens.
The draft lifecycle
draft ──validate_draft──▶ validated ──a human edits the file──▶ approved ──submit_request──▶ submittedA reply draft has its own, ending in sent rather than submitted, and only
send_reply_via_browser can reach that state — and only after the API has confirmed that
a new message exists.
Only a human moves a draft to approved, and only by editing the YAML file.
Know the limit of that sentence. Gate 1 (status: approved) and gate 4
(confirmation_token) are two values in a file on your disk. No tool in this server
can set either of them — create_request_draft always writes status: draft and the
placeholder token, and there is no tool that promotes a draft. But most MCP hosts give
the model a general-purpose file-writing tool as well, and a model that can write files
can write status: approved and a token of its own choosing. Combined with a prompt
injection out of an authority's reply, that is a path to a real submission.
So, if you run this alongside a filesystem tool:
keep
submit_requestout of the picture entirely by configuring scopes withoutmake:request— then no token this server holds can ever POST a request;or set
FDS_MCP_DRAFT_DIRto a directory your other tools do not write to;or leave the recommended exit in place and use
build_submit_url, where the send button is in your browser and not in a tool call;and leave
FDS_MCP_BROWSER_SENDunset. The same reasoning applies tosend_reply_via_browser, one step more sharply: it has no scope you can withhold, only a browser session you own.
Gates 2, 3, 5 and 7 do not depend on the file and hold regardless: the rule set runs
against live API data, the law check compares against the recomputed API default, the
throttle ledger is separate state, and the HTTP client refuses non-GET everywhere except
in submit_request.
Development
pip install -e ".[dev]"
python -m pytest -m "not live" # offline suite
python -m pytest -m live # hits fragdenstaat.deNetwork access is blocked by default via pytest-socket; only tests marked live may
reach fragdenstaat.de.
The live suite is read-only GETs with exactly two exceptions, both in
tests/test_api_contract.py, both of which cannot create anything: the message POSTs
carry an unresolvable request URI, and the web-form POST carries an empty body. No test
opens a browser and no test sends a message. The tests that need a token skip, rather
than fail, when ~/.config/fds-mcp/tokens.json is absent.
The CLI also works without an MCP client:
fds-mcp validate examples/request-draft.yaml
fds-mcp validate examples/request-draft.yaml --liveFacts, and where they come from
Everything this server asserts about the API was verified against fragdenstaat.de on
2026-09-05, against okfde/froide@bc6c2fa and okfde/fragdenstaat_de@88bfbba. The
source references are in the docstrings, down to file and line. If you find a claim that
is wrong or has gone stale, that is a bug — please open an issue.
The API is documented at https://fragdenstaat.de/api/ with an OpenAPI 3.0.3 schema at
https://fragdenstaat.de/api/v1/schema/ and a Swagger UI at
https://fragdenstaat.de/api/v1/schema/swagger-ui/. (/api/v1/docs/, which froide's own
docs mention, returns 404.)
Please use this responsibly
FragDenStaat is run by a non-profit and paid for by donations. Every request you file costs a public authority real working time. The rate limits are 5 requests per 5 minutes and 20 per week for a reason. This server is built to help you file better requests, not more of them.
Requests filed with public: true — the default — publish the entire e-mail
correspondence, all approved attachments and all uploaded documents to the world under
CC0.
Disclaimer
This project is not affiliated with, endorsed by, or connected to the Open Knowledge Foundation Deutschland e.V., FragDenStaat, or the froide project. It is an independent third-party client that talks to a public API. All trademarks belong to their owners.
This is not legal advice.
License
MIT — see LICENSE. Copyright 2026 Dirk Wolbeck.
Available Tools
15 toolsbuild_reply_draftA
Prepare a follow-up message to an authority. YELLOW: reads the API, sends nothing.
The counterpart of ``build_submit_url`` for a request that already exists. It looks
the request up, validates the text against the rules that apply to a follow-up, and
hands back the finished text plus the URL of the form. **Pressing send stays with
you**, and there is no tool argument that changes that: replying is not possible
through the API at all. Measured 2026-09-05 (tests/test_api_contract.py):
``POST /api/v1/message/`` refuses ``kind: "email"``, and the web view at
``/anfrage/<slug>/send/message/`` answers 302 to the login page whether or not a
bearer token is attached.
A follow-up is validated differently from a request. froide does **not** frame it:
the textarea arrives prefilled with a salutation, the placeholder U+2026 and a
closing formula, and exactly what stands in it is what the authority receives. So
R19 requires a salutation and a closing formula — the inverse of R10 — R04 rejects
the placeholder that is sitting in the form right now, R06 keeps e-mail addresses and
IBANs out of a public thread, and the subject is capped at 230 characters.
Args:
request_id: numeric id of your existing request.
text: the complete message, salutation and closing formula included.
subject: reply subject. Defaults to "AW: <title> [#<id>]".
path: optional path to a ``.yaml`` file to write the draft to. Needed only if you
intend to use ``send_reply_via_browser`` later; the file is written with
``status: draft`` and a placeholder confirmation token.
Inputs: text (required), request_id (required), path, subject.
build_submit_urlA
Build the prefilled web form URL — the recommended way out. RED tier.
This is the only route on which the legal basis can actually be chosen
(``?law_type=...``); the REST API's MakeRequestSerializer has no such field. Sending
stays with the human.
fragdenstaat.de answers GET URLs above roughly 4096 bytes with HTTP 400 (measured
2026-09-05). Longer drafts therefore get a two-step answer: a short URL that
prefills subject and law_type, plus the body in a sidecar text file.
Args:
path: path to the draft YAML file.
dry_run: True (default) does not write the sidecar .body.txt file.
Inputs: path (required), dry_run.
check_deadlinesA
Your open requests whose statutory deadline has passed. YELLOW.
froide exposes no "deadline expired" flag; it is computed from ``due_date`` against
the current time, exactly as the frontend does.
Inputs: no named parameters.
check_jurisdictionA
Which authority covers a given place? GREEN — returns the evidence trail.
Resolves ``/georegion/?name=<place>``, walks its ``part_of`` chain upwards, and asks
``/publicbody/?regions=<id>`` level by level, from the most specific outwards. It
stops at the **first level that yields any authority**, because that is the body
actually responsible; the remaining, wider levels are reported by id only.
This matters in states such as Rhineland-Palatinate, where an *Ortsgemeinde* is often
not listed on fragdenstaat.de at all while the *Verbandsgemeindeverwaltung* that runs
its administration is.
Args:
place_name: name of the municipality, district or state.
include_wider: also list the authorities of the wider levels. Off by default —
at country level that is thousands of bodies and tells you nothing.
Inputs: place_name (required), include_wider.
create_request_draftA
Write a local YAML draft. RED tier, but performs NO network traffic at all.
The file starts in status ``draft`` with a placeholder confirmation token. A human
has to read the text, set ``status: approved`` and replace ``confirmation_token``
before anything can be submitted.
Args:
path: where to write the YAML file.
subject: request subject, 8-230 characters.
body: the request text, at most 5000 characters.
publicbody_id: recipient authority id.
law_wunsch_id: the law you want to file under.
law_api_default_id: the law the REST API would apply — see get_authority().
law_wunsch_law_type: law_type of the desired law, e.g. "IFG" or "UIG".
publicbody_name: authority name, for the L01 cross-check.
publicbody_email: authority e-mail, for the L01 cross-check.
ermittelt_ueber: how responsibility was established (a URL or a sentence).
public: whether the request will be public. Public means CC0 and visible to all.
full_text: True sends your text verbatim, False lets froide frame it.
submit_via: "web_form" (human presses send) or "api" (immediate dispatch).
dry_run: True (default) returns the draft without writing the file.
Inputs: body (required), path (required), subject (required), law_wunsch_id (required), +10 more.
download_attachmentA
Download one attachment into a local directory. YELLOW: reading only.
The directory has to exist already: this tool will not create a path, because
``target_dir`` is a model-chosen argument and the file name comes from the API, and
together they were enough to drop a file into e.g. ~/.config/autostart/. Set
``FDS_MCP_DOWNLOAD_DIR`` to confine downloads to one directory.
Args:
attachment_id: numeric attachment id (from list_attachments).
target_dir: an existing local directory.
Inputs: target_dir (required), attachment_id (required).
get_authorityA
Full record for one public body, including its laws. GREEN.
The API does not expose ``default_law``, so the law the REST API would apply is
recomputed here the way froide's ``get_applicable_law()`` does it
(``order_by('-meta', '-priority')``). That default is almost always the *meta* law,
which is why the API cannot be used to file under a specific act.
Args:
id: numeric public body id.
Inputs: id (required).
get_lawC
One freedom-of-information act with its deadline rules. GREEN.
Args:
id: numeric law id, e.g. from ``get_authority(...)["laws"]``.
Inputs: id (required).
get_messagesB
All messages of a request, oldest first. YELLOW.
Args:
request_id: numeric request id.
Inputs: request_id (required).
get_requestB
One FOI request in detail. YELLOW (public requests work without a token).
Args:
id: numeric request id.
Inputs: id (required).
list_attachmentsB
Attachments belonging to one message. YELLOW.
Args:
message_id: numeric message id (from get_messages).
Inputs: message_id (required).
list_my_requestsA
Your own FOI requests. YELLOW: needs a token (scope read:request), read only.
Args:
status: optional filter, e.g. "awaiting_response" or "resolved".
limit: maximum number of requests to return.
Inputs: limit, status.
search_authoritiesA
Search public bodies on fragdenstaat.de. GREEN: no auth, no side effects.
Args:
query: free-text search, e.g. a town or an authority name.
jurisdiction: optional filter — numeric id, slug ("rheinland-pfalz") or
name ("Rheinland-Pfalz"). The API itself only accepts the id.
limit: maximum number of results (server page size is 50).
Inputs: query (required), limit, jurisdiction.
submit_requestA
Actually POST the request to fragdenstaat.de. RED tier — IRREVERSIBLE.
``POST /api/v1/request/`` sends the e-mail to the authority immediately. There is no
draft, no preview and no undo. Five gates therefore have to agree, in this order:
1. the draft's status is ``approved`` (a human set it),
2. no ERROR finding is open,
3. ``law.wunsch_id == law.api_default_id`` — the API cannot set law_type, so a
mismatch would file the request under the wrong act,
4. ``confirmation_token`` matches the value a human wrote into the draft file,
5. the local throttle ledger says another submission stays inside
5/5min, 6/6h, 10/24h, 20/7d.
Args:
path: path to the approved draft YAML file.
confirmation_token: must equal the ``confirmation_token`` inside the draft file.
dry_run: True (default) runs every gate and reports, but sends nothing.
Inputs: path (required), confirmation_token (required), dry_run.
validate_draftA
Run the rule set against a draft. RED tier.
Offline rules R01-R16 always run. The live rules L01-L04 (authority exists, law is
offered, API default law, duplicate check) need the network and therefore only run
with ``dry_run=False``.
Args:
path: path to the draft YAML file.
dry_run: True (default) runs offline rules only and does not touch the file.
Inputs: path (required), dry_run.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Every tool maps to a distinct resource or action: authority lookup, jurisdiction resolution, request retrieval, message/attachment access, deadline checks, and the draft/submit pipeline. Even the several draft-related tools are clearly separated by request vs reply and validate/build/submit roles.
Tool names mostly follow a clear verb_noun pattern like list_my_requests, get_request, download_attachment, and submit_request. Minor inconsistencies exist, such as create_request_draft vs build_reply_draft and get_messages vs list_attachments, but the overall convention remains predictable.
With 15 tools, the server is at the upper edge of a well-scoped set but each tool earns its place. The count reflects a complete workflow: discovery, retrieval, attachments, deadlines, draft validation, URL generation, and submission.
The domain is well covered: authority and law lookup, request/message/attachment retrieval, deadline checking, request drafting/validation/submission, and reply drafting all exist. The main gap is that reply submission is not provided by any tool, though the description explains this is an API limitation and the workflow hands off to a human.
Maintenance
Related MCP Connectors
Live EU AI Act record from 22 official sources: EUR-Lex, AI Office, AI Board, CEN-CENELEC and national regulators (BNetzA, CNIL, AESIA, Dutch AP and more). Ask for obligations by role and risk class, look up an article, or get a digest of what changed since a date. Every answer links the primary source. Works without a key.
Resolve any government entity worldwide and submit service requests. Open civic data for AI agents.
Local government intelligence for AI agents.
Verified, citable German & EU law for any LLM. Daily updates from official sources, hosted in DE.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for UK Freedom of Information research. Connects AI assistants to WhatDoTheyKnow — the UK's largest FOI request platform to search requests, read responses, look up public authorities, and draft new requests.12MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying 6,870 German federal statutes, case law, and legislative preparatory works directly from AI assistants and MCP-compatible clients.119 npm4Apache 2.0
- AlicenseAqualityCmaintenanceEnables AI agents to query German federal and state statutes, court decisions, and citation graphs, grounding citations, retrieving provision texts and versions, and understanding coverage limits through read-only tools.91AGPL 3.0
- AlicenseAqualityBmaintenanceEnables AI agents to retrieve the verbatim text of German federal and state statutes, search official case law from BGH, BAG and BVerfG, and compute procedurally exact deadlines under §§ 187–193 BGB with weekend and public-holiday adjustment. It also supplies structured statutory-element blueprints with burden-of-proof allocation and assembles citation-secured research dossiers for pleadings.61MIT