Back to Home
isakskogstad icon

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

Run Command
npm run start:http

Environment 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

Stats

Interest Score0
Security Score5
Cost ClassMedium
Stars0
Forks0
Last Update2025-12-02

Tags

swedencompany-dataannual-reportsfinancial-datamcp-server