Berlin Services MCP Server
Click on "Install 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., "@Berlin Services MCP Serversearch for anmeldung service details"
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.
Berlin Services MCP Server - Enhanced
A production-grade Model Context Protocol (MCP) server for Berlin city services (Dienstleistungen). It features resilient caching, advanced search, PDF form discovery, and filling capabilities.
Features
Comprehensive Tools: Search, browse, and get detailed information on Berlin services.
Form Management: Discover, analyze, and fill PDF forms for various services.
Resilient Caching: Optimized for performance with intelligent fallback for offline use.
Remote Sync: Supports both local and remote (Cloud) deployments.
Related MCP server: Berlin-Search-Service
Technical Architecture
1. Data Sourcing
The server pulls data from the official Berlin City Services API
Live Fetching: Tools like
search_servicesandget_service_detailshit the live API.Resilient Caching: Implements a dual-layer cache (Memory + Disk) to ensure high performance and offline reliability.
Smart Fallback: If the API is down and no cache exists, it falls back to a minimal set of core services to remain functional.
2. Advanced PDF Processing
Powered by PyMuPDF (fitz), the server provides sophisticated document handling:
Field Extraction: Automatically detects fillable fields in PDF forms hosted on the city's servers.
Intelligent Filling: Maps user data to PDF fields using smart matching and common translation fragments.
Loop Protection: Includes a
LoopProtectorto prevent redundant tool executions and LLM loops.Visual Previews: Can render specific pages of a PDF to JPEG for a quick in-chat snapshot (useful for verification without leaving the chat).
3. Deployment Modes
Local Mode: Optimized for use with Claude Desktop. In this mode,
open_file_locallycan be used to open filled PDFs directly with your system's default viewer.Remote/Cloud Mode: Designed for deployment on platforms like Fly.io or Railway. Replaces local file opening with secure synchronization and in-chat previews.
Prerequisites
Python 3.11 or higher
uv(recommended) orpip
Local Setup
Using uv (Recommended)
Install dependencies and sync the environment:
uv syncRun the server as a module:
export PYTHONPATH=$PYTHONPATH:$(pwd)/src && uv run python -m berlin_mcp.mainNote: If you've installed the package via
uv sync, you can also just run:uv run berlin-mcp
Using pip
Install dependencies:
pip install -r requirements.txtRun the server:
export PYTHONPATH=$PYTHONPATH:$(pwd)/src && python -m berlin_mcp.main
Claude Desktop Configuration
Add the following to your Claude Desktop configuration file. Replace /Users/mananshah/Desktop/Berlin-Services-MCP-Server with the actual absolute path to the folder.
macOS
File location: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"berlin-services": {
"command": "uv",
"args": [
"run",
"--directory",
"/Users/YourUser/Desktop/Berlin-Services-MCP-Server",
"python",
"-m",
"berlin_mcp.main"
],
"env": {
"PYTHONPATH": "src"
}
}
}
}Windows
File location: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"berlin-services": {
"command": "uv",
"args": [
"run",
"--directory",
"C:\\Users\\YourUser\\Desktop\\Berlin-Services-MCP-Server",
"python",
"-m",
"berlin_mcp.main"
],
"env": {
"PYTHONPATH": "src"
}
}
}
}Tools and Resources
The server exposes the following tools to help you navigate and manage Berlin city services:
Tool | Description |
| Advanced search for Berlin services with paging and filters. |
| Get complete details about a service including forms and prerequisites. |
| Get all forms associated with a service with detailed metadata. |
| Search for forms across all services. |
| Get all forms of a specific type across services. |
| Get all prerequisites and requirements for a service. |
| Get a comprehensive checklist for completing a service application. |
| Download a PDF form and extract its fillable fields. |
| Fill a PDF form and save locally. |
| Retrieve a filled PDF form. |
| Render a page of a filled PDF as an image. |
| Open a file on the user's local system (Local setup only). |
| Manually delete a filled form from the server. |
| Browse services by category. |
| Find all services available online. |
| Get all locations for a service. |
| Get API and cache status diagnostics. |
| Clear the service cache and force refresh. |
Security Note
PDF forms filled on remote servers should be downloaded and then deleted using the delete_filled_form tool to ensure data privacy.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MananCoder29/Berlin-Services-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server