Berlin Services MCP Server
# Berlin Services MCP Server
A Model Context Protocol (MCP) server that provides access to Berlin's administrative services (Dienstleistungen) data. This server allows AI assistants like Claude to search and retrieve information about over 1,000 public services offered by Berlin authorities.
## Features
- **Search Services**: Search for services by name or description
- **Service Details**: Get comprehensive information about specific services including:
- Requirements and prerequisites
- Fees and processing times
- Required forms and documents
- Online processing options
- Appointment booking links
- Responsible authorities
- Legal references
- **List Services**: Browse all available services
- **Statistics**: Get dataset information and statistics
## Installation
### Option 1: Using npx (Recommended - No Installation!)
No installation needed! Just use it directly via npx.
### Option 2: Clone and Build (For Development)
```bash
# 1. Clone the repository
git clone https://github.com/ingohinterding/berlin-services-mcp.git
cd berlin-services-mcp
# 2. Install dependencies
npm install
# 3. Build the project
npm run build
```
## Usage
### With Claude Desktop
Add this configuration to your Claude Desktop config file:
**MacOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows**: `%APPDATA%/Claude/claude_desktop_config.json`
**Option 1: Using npx (Easiest)**
```json
{
"mcpServers": {
"berlin-services": {
"command": "npx",
"args": [
"-y",
"@ingohinterding/berlin-services-mcp"
]
}
}
}
```
**Option 2: Using local build**
```json
{
"mcpServers": {
"berlin-services": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/berlin-services-mcp/build/index.js"
]
}
}
}
```
(Replace `/ABSOLUTE/PATH/TO/berlin-services-mcp` with your actual path)
After adding this, restart Claude Desktop completely (Cmd+Q on Mac, then reopen).
### With MCP Inspector
For testing:
**With npx:**
```bash
npx @modelcontextprotocol/inspector npx -y @ingohinterding/berlin-services-mcp
```
**With local build:**
```bash
npx @modelcontextprotocol/inspector node build/index.js
```
This opens a web interface where you can test all the tools interactively.
## Available Tools
### 1. `search_services`
Search for services by name or description.
**Parameters:**
- `query` (string, required): Search query
**Example:**
```json
{
"query": "Anmeldung"
}
```
### 2. `get_service_details`
Get detailed information about a specific service.
**Parameters:**
- `service_id` (string, required): The service ID
**Example:**
```json
{
"service_id": "120335"
}
```
### 3. `list_services`
List all available services.
**Parameters:**
- `limit` (number, optional): Maximum number of services to return (default: 50, max: 200)
**Example:**
```json
{
"limit": 100
}
```
### 4. `get_services_stats`
Get statistics about the dataset.
**Parameters:** None
## Example Queries with Claude
Once configured, you can ask Claude questions like:
- "Search for services related to residence registration"
- "What are the requirements for Anmeldung einer Wohnung?"
- "Show me all services related to passport"
- "What documents do I need for service ID 120335?"
- "How much does it cost to register my address in Berlin?"
## Data Source
This server fetches data from the official Berlin services API:
https://service.berlin.de/export/dienstleistungen/json/
The data includes:
- 1,000+ administrative services
- Information in German language
- Real-time appointment availability
- Links to online processing when available
- Responsible authorities for each service
## Development
### Building
```bash
npm run build
```
### Development Mode
```bash
npm run watch
```
### Project Structure
```
berlin-services-mcp/
├── src/
│ └── index.ts # Main MCP server implementation
├── build/ # Compiled JavaScript (generated)
├── package.json
├── tsconfig.json
├── README.md
└── LICENSE
```
## License
MIT License - see [LICENSE](LICENSE) file for details.
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## Acknowledgments
- Inspired by the [Garmin MCP](https://github.com/Taxuspt/garmin_mcp) project
- Data provided by [Service Berlin](https://service.berlin.de/)
- Built with the [Model Context Protocol](https://modelcontextprotocol.io/)
TDQS
Scored across 4 tools
Four tools with mostly distinct purposes: search_services (query-based), list_services (browse all), get_service_details (by ID), and get_services_stats (metadata). The main overlap risk is search_services vs list_services, since both return lists of services, but the descriptions clarify query-driven vs paginated browsing. An agent could occasionally pick list when it meant a search, but boundaries are reasonably clear.
All four names follow a verb_noun snake_case pattern (search_services, get_service_details, list_services, get_services_stats). Minor inconsistency in pluralization of the noun portion ('service_details' vs 'services_stats') and the use of two different verbs (get vs list/search), but overall predictable and readable.
Four tools is a tight, well-scoped surface for a read-only service-lookup server. Each tool maps to a distinct access pattern (search, list, detail, stats) without padding. It sits at the low end of the typical 3-15 range but is justified for the narrow reference-lookup purpose.
The core read lifecycle (search, browse, detail, dataset stats) is fully covered for a reference dataset. Minor gaps exist: no filtering by category, district, or availability, and search is limited to name/description. These are workarounds an agent can navigate, so the surface is largely complete for its stated lookup purpose.