How to Use the FOIA.gov (Freedom of Information) MCP in Claude Code
Run CLI commands to extract FOIA.gov data and pipe raw XML reports directly to your local scripts.
Works with every AI agent you already use
…and any MCP-compatible client
Connect FOIA.gov (Freedom of Information) MCP to Claude Code
Create your Vinkius account to connect FOIA.gov (Freedom of Information) to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Bulk export agency components to JSON
The `list_agency_components` tool retrieves federal agency data directly through your terminal. Claude Code runs this tool, filters the output using sparse fieldsets, and pipes the clean JSON payload straight into your local scripts or databases. This is built for automated scraping and data collection pipelines. You can run a single terminal command to update your entire local database of federal departments without writing custom scrapers.
Download raw XML annual reports via terminal
The `get_annual_report_xml` tool pulls the raw XML data of any federal agency's annual performance directly to your shell. Claude Code executes this command, saves the file locally, and can run bash scripts to parse the records. You do not need to deal with web browsers or manual download links. Get the raw data you need for historical analysis in one swift terminal execution.
Inspect specific agency requirements instantly
The `get_agency_component` tool fetches the exact contact details and metadata for a specific office via its UUID. Claude Code queries this endpoint to verify submission addresses or phone numbers right from your terminal prompt. It removes the friction of digging through bad government websites. Get the raw contact data in seconds and pipe it to other command-line utilities.
Set up FOIA.gov (Freedom of Information) MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seefoiagov-freedom-of-information-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest FOIA.gov (Freedom of Information) transactions." It will automatically discover and invoke the available FOIA.gov (Freedom of Information) tools.
claude mcp add --transport http foiagov-freedom-of-information-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about FOIA.gov (Freedom of Information) MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the FOIA.gov (Freedom of Information) MCP today
We host it, we monitor it, we maintain it. You just paste one token.