foretagsinfo-mcp
by isakskogstad
Overview
Provides an MCP server for accessing Swedish company information, financial data, and annual reports via Bolagsverket API and a Supabase cache.
Installation
npm run start:httpEnvironment Variables
- BOLAGSVERKET_CLIENT_ID
- BOLAGSVERKET_CLIENT_SECRET
- SUPABASE_URL
- SUPABASE_SERVICE_ROLE_KEY
Security Notes
The provided source code for `src/utils/validators.ts` contains an XSS vulnerability in `SearchQuerySchema`'s `.refine` method. The regex `/<script|javascript:|onerror=|onclick=/i.test(val)` is insufficient to block several common XSS attack vectors, including onload/onfocus events, SVG, iframe, and eval patterns. This is explicitly identified and remediated in the `REMEDIATION-GUIDE.md` but not reflected in the main `src/utils/validators.ts` file. SQL injection prevention is robust for common payloads. No hardcoded secrets were found, and environment variables are used for credentials. The `import-parquet.ts` script uses `child_process.spawn` to execute a Python script, which is generated dynamically, posing a potential (though currently controlled by static inputs) code execution risk. Overall score is lowered significantly due to the unpatched XSS vulnerability.
Similar Servers
Riksdag-Regering-MCP
Enables LLMs to query and retrieve real-time open data, documents, protocols, and records from the Swedish Parliament (Riksdagen) and Government Offices (Regeringskansliet).
supabase-mcp-server
This server provides interactive tools and React widgets for exploring and querying your Supabase database and viewing its service status.
kolada-mcp
Provides AI applications with tools to access and analyze Sweden's municipal and regional statistics from the Kolada API, enabling natural language queries against thousands of Key Performance Indicators (KPIs) through semantic search and data retrieval.
KOLADA-MCP
Provides LLMs and AI chatbots with direct access to over 5,000 Key Performance Indicators and statistical data for all 290 Swedish municipalities and 21 regions from the Kolada API.