Swedish Competition MCP
# Swedish Competition MCP
<!-- ANSVAR-CTA-BEGIN -->
> **The Swedish competition corpus is now served through the Ansvar Gateway.** Connect your AI assistant (Claude, Copilot, Cursor, custom MCP client) to `https://gateway.ansvar.eu/mcp` — one OAuth connection, free tier available, covering this corpus plus EU regulations, national law across dozens of audited jurisdictions (Europe + the US), and CVE/security intelligence, every result with a verbatim source citation. Start at https://ansvar.eu/docs/quickstart
### Connect
**Claude Code** (one line):
```bash
claude mcp add ansvar --transport http https://gateway.ansvar.eu/mcp
```
**Claude Desktop / Cursor** — add to `claude_desktop_config.json` (or `mcp.json`):
```json
{
"mcpServers": {
"ansvar": {
"type": "url",
"url": "https://gateway.ansvar.eu/mcp"
}
}
}
```
**Claude.ai** — Settings → Connectors → Add custom connector → paste `https://gateway.ansvar.eu/mcp`
First request opens an OAuth signup flow (setup details: [ansvar.eu/docs/quickstart](https://ansvar.eu/docs/quickstart)). After signup, your client is bound to your account; tier (free / premium / team / company) determines fan-out, quota, and which downstream MCPs are reachable.
---
## Self-host this MCP
You can also clone this repo and build the corpus yourself. The schema,
fetcher, and tool implementations all live here. What is not in the repo is
the pre-built database — TDM and standards-licensing constraints on the
upstream sources mean we host the corpus on Ansvar infrastructure rather
than redistribute it as a public artifact.
Build your own: run this repo's ingestion script (entry-point varies per
repo — typically `scripts/ingest.sh`, `npm run ingest`, or `make ingest`;
check the repo root).
<!-- ANSVAR-CTA-END -->
**Swedish competition data for AI compliance tools.**
[](https://opensource.org/licenses/Apache-2.0)
[](https://github.com/Ansvar-Systems/swedish-competition-mcp/actions/workflows/ci.yml)
Query Swedish competition data -- regulations, decisions, and requirements from Konkurrensverket (Swedish Competition Authority) -- directly from Claude, Cursor, or any MCP-compatible client.
Built by [Ansvar Systems](https://ansvar.eu) -- Stockholm, Sweden
---
## Available Tools (6)
| Tool | Description |
|------|-------------|
| `se_comp_search_decisions` | Full-text search across Konkurrensverket enforcement decisions (abuse of dominance, cartel, sector inquiries). Return... |
| `se_comp_get_decision` | Get a specific Konkurrensverket decision by case number (e.g., |
| `se_comp_search_mergers` | Search Konkurrensverket merger control decisions (Fusionskontrolle). Returns merger cases with acquiring party, targe... |
| `se_comp_get_merger` | Get a specific merger control decision by case number (e.g., |
| `se_comp_list_sectors` | List all sectors with Konkurrensverket enforcement activity, including decision counts and merger counts per sector. |
| `se_comp_about` | Return metadata about this MCP server: version, data source, coverage, and tool list. |
All tools return structured data with source references and timestamps.
---
## Data Sources and Freshness
All content is sourced from official Swedish regulatory publications:
- **Konkurrensverket (Swedish Competition Authority)** -- Official regulatory authority
### Data Currency
- Database updates are periodic and may lag official publications
- Freshness checks run via GitHub Actions workflows
- Last-updated timestamps in tool responses indicate data age
See `sources.yml` for full provenance metadata.
---
## Security
This project uses multiple layers of automated security scanning:
| Scanner | What It Does | Schedule |
|---------|-------------|----------|
| **CodeQL** | Static analysis for security vulnerabilities | Weekly + PRs |
| **Semgrep** | SAST scanning (OWASP top 10, secrets, TypeScript) | Every push |
| **Gitleaks** | Secret detection across git history | Every push |
| **Trivy** | CVE scanning on filesystem and npm dependencies | Daily |
| **Docker Security** | Container image scanning + SBOM generation | Daily |
| **Socket.dev** | Supply chain attack detection | PRs |
| **Dependabot** | Automated dependency updates | Weekly |
See [SECURITY.md](SECURITY.md) for the full policy and vulnerability reporting.
---
## Important Disclaimers
### Not Regulatory Advice
> **THIS TOOL IS NOT REGULATORY OR LEGAL ADVICE**
>
> Regulatory data is sourced from official publications by Konkurrensverket (Swedish Competition Authority). However:
> - This is a **research tool**, not a substitute for professional regulatory counsel
> - **Verify all references** against primary sources before making compliance decisions
> - **Coverage may be incomplete** -- do not rely solely on this for regulatory research
**Before using professionally, read:** [DISCLAIMER.md](DISCLAIMER.md) | [PRIVACY.md](PRIVACY.md)
### Confidentiality
Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment. See [PRIVACY.md](PRIVACY.md) for details.
---
## Development
### Setup
```bash
git clone https://github.com/Ansvar-Systems/swedish-competition-mcp
cd swedish-competition-mcp
npm install
npm run build
npm test
```
### Running Locally
```bash
npm run dev # Start MCP server
npx @anthropic/mcp-inspector node dist/index.js # Test with MCP Inspector
```
### Data Management
```bash
npm run build:db # Rebuild SQLite database from seed data
npm run check-updates # Check for new regulatory data
```
---
## More Ansvar MCPs
Full fleet coverage at [ansvar.eu/coverage](https://ansvar.eu/coverage).
## Contributing
Contributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
---
## License
Apache License 2.0. See [LICENSE](./LICENSE) for details.
### Data Licenses
Regulatory data sourced from official government publications. See `sources.yml` for per-source licensing details.
---
## About Ansvar Systems
We build AI-powered compliance and legal research tools for the European market. Our MCP fleet provides structured, verified regulatory data to AI assistants -- so compliance professionals can work with accurate sources instead of guessing.
**[ansvar.eu](https://ansvar.eu)** -- Stockholm, Sweden
---
<p align="center">
<sub>Built with care in Stockholm, Sweden</sub>
</p>
TDQS
Scored across 6 tools
Search tools are well separated by domain: search_decisions explicitly covers abuse/cartel/sector inquiries while search_mergers targets merger control, and list_sectors/about are clearly distinct utilities. The one fuzzy boundary is get_decision vs get_merger, since a merger decision is also a Konkurrensverket decision and get_decision's description doesn't say it excludes merger cases.
All tools share the se_comp_ namespace prefix and follow a verb_noun pattern (get_merger, list_sectors, search_decisions, search_mergers). The only deviation is se_comp_about, a meta tool with no verb, which is a conventional and readable exception.
Six tools is well scoped for a read-only national competition-regulator data server: two search tools, two detail lookups, one aggregate listing, and one metadata tool. Every tool has a distinct role and nothing appears redundant or padded.
The surface covers the core lifecycle for a reference data source: discover via search/list, then retrieve full detail by case number, plus server metadata. Minor gaps remain, such as date/party filtering, pagination controls, or a general case index across decision types, but agents can work around these by searching.