Kela Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Kela Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
An open-source knowledge server that helps AI assistants answer questions about Finnish social benefits (Kela). Works with any AI assistant that supports the Model Context Protocol. Note! This is a hobby project to demonstrate how to create MCP's.
You: "Can I get housing allowance if I earn 1400€/month in Helsinki?"
AI: Let me check that for you...
[calls kela-mcp → check_eligibility]
Based on current asumistuki rules, with 1400€/month income in Helsinki:
- You may be eligible for partial housing allowance
- Estimated amount: 150-280€/month depending on rent and household size
- Apply through OmaKela with form AT1
This is informational only. Verify at kela.fiModel Context Protocol (MCP) is an open standard that lets AI assistants use external tools and data sources. Think of it like giving your AI assistant "superpowers", instead of relying only on its training data, it can call real tools to look things up, do calculations, or take actions.
┌─────────────────┐ ┌─────────────────┐
│ │ "What is │ │
│ AI Assistant │ kuntoutustuki?" │ Kela MCP │
│ (Claude, etc.) │ ───────────────────► │ Server │
│ │ │ │
│ │ ◄─────────────────── │ [looks up │
│ │ {eligibility, │ real data] │
│ │ amounts, ...} │ │
└─────────────────┘ └─────────────────┘Without MCP: AI answers from memory (may be outdated or wrong) With MCP: AI calls this server to get current, structured information
MCP is an open protocol - not tied to any specific AI company. Any AI assistant that implements MCP can use this server.
| Tool | What it does | Example |
|---|---|---|
search_benefits | Find relevant benefits | "help for unemployed students" |
get_benefit_details | Get full info on one benefit | "tell me about opintotuki" |
check_eligibility | Estimate if you qualify | "can I get asumistuki with X income?" |
get_application_steps | How to apply | "how do I apply for sairauspäiväraha?" |
compare_benefits | Side-by-side comparison | "difference between X and Y?" |
| Resource | Contents |
|---|---|
kela://benefits | List of all benefit categories |
kela://benefits/{id} | Detailed info for one benefit |
kela://updates | Recent changes to benefits |
# Clone the repository
git clone https://github.com/emmakingdev/kela-mcp.git
cd kela-mcp
# Create virtual environment (recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install the package
pip install -e .
# Build the search index
python scripts/build_db.py# Run the server directly to test
python -m kela_mcp.server
# You should see:
# Kela MCP Server running...
# Press Ctrl+C to stopMCP is an open protocol. Here's how to connect this server to popular AI clients:
Edit your Claude Desktop config file:
macOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"kela": {
"command": "python",
"args": ["-m", "kela_mcp.server"],
"cwd": "/full/path/to/kela-mcp"
}
}
}Restart Claude Desktop. You should see "kela" in the MCP servers list. If it fails, create the venv again.
Add to your Claude Code MCP settings:
{
"mcpServers": {
"kela": {
"command": "python",
"args": ["-m", "kela_mcp.server"],
"cwd": "/full/path/to/kela-mcp"
}
}
}Any client that implements the MCP specification should work. The server uses stdio transport by default (the most widely supported).
For clients that need HTTP/SSE transport:
# Install with SSE support
pip install -e ".[sse]"
# Run with SSE transport
python -m kela_mcp.server --transport sse --port 8080If you're building an AI application and want to integrate this server, see the MCP Documentation for client implementation guides in various languages.
Once connected, just ask your AI assistant about Kela benefits in natural language:
"Mitä tukia voin saada opiskelijana?"
"Kuinka paljon asumistukea voin saada jos vuokra on 600€?"
"Miten haen sairauspäivärahaa?""What benefits can I get as a student in Finland?"
"Am I eligible for housing allowance with 1500€ income?"
"How do I apply for parental leave benefits?"The AI will automatically use the appropriate tools from this server to answer.
kela-mcp/
├── src/
│ └── kela_mcp/
│ ├── __init__.py
│ ├── server.py # MCP server entry point
│ ├── tools/ # Tool implementations
│ │ ├── search.py
│ │ ├── details.py
│ │ ├── eligibility.py
│ │ └── application.py
│ ├── resources.py # MCP resources
│ ├── prompts.py # Prompt templates
│ └── db.py # Database interface
├── data/
│ ├── benefits/ # Benefit data (JSON)
│ │ ├── asumistuki.json
│ │ ├── opintotuki.json
│ │ └── ...
│ └── kela.db # Search index (SQLite)
├── scripts/
│ ├── build_db.py # Build search index
│ └── validate_data.py # Validate benefit data
├── tests/
├── pyproject.toml
└── README.mdAll information comes from publicly available sources on kela.fi.
This is NOT official Kela guidance.
Each benefit entry includes a last_updated timestamp. We aim to review data quarterly, but cannot guarantee real-time accuracy.
pytest tests/src/kela_mcp/tools/@server.tool() decoratorserver.pytests/# Install dev dependencies
pip install -e ".[dev]"
# Run with auto-reload (requires watchdog)
watchmedo auto-restart --patterns="*.py" --recursive -- python -m kela_mcp.serverMCP allows AI assistants to intelligently choose which tools to use based on the conversation. Instead of you manually calling an API, you just ask a question and the AI figures out what information it needs.
The server is designed for MCP clients, but the underlying data is plain JSON. You can directly read the files in data/benefits/ or query data/kela.db with SQL.
No. This is an independent open-source project. We aggregate publicly available information to make it more accessible.
The Finnish benefits system is complex and navigating it can be confusing, especially for immigrants or people unfamiliar with the system. This tool helps make that information more accessible.
MIT License - see LICENSE for details.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.