| Version | Supported |
|---|---|
| 1.x | Yes |
If you discover a security vulnerability in this project, please report it responsibly.
Do not open a public issue.
Instead, please use GitHub's private vulnerability reporting to submit your report.
You can expect:
- An acknowledgment within 48 hours
- A follow-up with an assessment within 7 days
- A fix timeline based on severity
This project is an MCP server that acts as a read-only client to the public simap API. It does not handle authentication, store credentials, or process sensitive user data.
The threat model describes the assets, actors, entry points and trust boundaries behind the rules below.
Relevant concerns include:
- Dependency vulnerabilities
- Input validation issues
- Unexpected data exposure through tool outputs
A change that breaks one of these is a security change, whatever its size:
- stdio only. The server never opens a network listener.
- One outbound target. Every request is an HTTPS
GETthat starts athttps://www.simap.ch/api. No tool argument or environment variable can change that address. Redirects are followed, so simap.ch itself can send a request elsewhere (a known limit). - No credentials. It reads, stores and sends no API key, token or password.
- No local side effects. It writes no file and starts no process. The only file it reads is its own
package.json. - stdout is the protocol. Logs go to stderr. Query values (search terms, filters) are logged only under
SIMAP_MCP_DEBUG. The default logs hold the endpoint path, which includes tender and publication IDs, and on failure the raw error, which can quote part of simap's response. - User input is validated before use. Tool arguments are parsed by Zod, and every ID placed in a URL path is validated as a UUID, whether the user or a simap response supplies it.
- Read-only tools. Every tool only reads public data and is advertised with
readOnlyHint. - Releases come from
main. Only.github/workflows/release.ymlpublishes: to npm on a push tomain, with provenance, and to the MCP Registry frommainonly (a manual run on any other branch stops before it publishes). These checks live in the workflow file, so they bind anyone who cannot edit it. Maintainers with write access can edit it and are trusted; what constrains them is held by GitHub and npm, not by this repository (see the threat model).
Report anything that breaks an invariant above. As a guide to severity:
- High: the server can be made to open a listener, start a request at a host other than simap.ch, write a file, run a command or handle a credential; or the release pipeline can be made to publish something that was not merged to
main. - Medium: query values reach the logs outside debug mode, user input reaches a URL path without validation, or the server can be made to use unbounded memory or requests.
- Low: incorrect or misleading tool output with no further consequence.
Known and accepted, so not reportable on their own (the threat model has the full list):
- Instructions hidden in tender text. Tenders are third-party content and are passed to the model as written, each field on one line. The tools are read-only, which limits what such text can make this server do. Report it if you find a way to make this server do more than read simap.
- simap availability and data accuracy. This project does not operate simap.ch.
- Weaknesses of the MCP host that runs the server.
The server publishes one Skill (simap-workflow) through the MCP Skills extension, so it advertises the io.modelcontextprotocol/skills extension and lists skill://simap-workflow/SKILL.md and skill://simap-workflow/_manifest as resources. This adds no new data flow:
- The Skill is an in-memory snapshot built from constants in the source code. It does not read the filesystem, the network or any user input, and its content is the same for every client.
- Only those two URIs resolve. Any other URI, including
..and percent-encoded traversal attempts, is answered with "Resource not found". - Its text is instructions for the model, written by this project and reviewed like the
analyze_tenderprompt it shares its analysis with. Like the prompt, it only describes how to use the read-only tools.
- Keep the package updated to the latest version
- Run the server in a sandboxed environment when possible
- Review tool outputs before acting on them
- Keep
SIMAP_MCP_DEBUGunset (or set to an empty value) in production. Debug mode logs the full request URL, including user-supplied search terms and filter values, to stderr. In most MCP hosts these stderr logs are captured and retained, so enabling debug in production effectively persists user queries. - The server does not require any secrets, tokens, or API keys. Do not configure any — if you see an example asking you to set one, it is likely a phishing attempt.
- stdout is reserved for the MCP JSON-RPC protocol; never redirect it into log files.
- The server is stdio-only and never opens a network listener. It is built on FastMCP, whose
run()honours anMCP_TRANSPORTenvironment variable that could otherwise switch it to an unauthenticated HTTP listener.startServer()explicitly forcestransport: "stdio"and overrides any otherMCP_TRANSPORTvalue (logging a warning to stderr), so a stray variable in the host environment cannot expose the server over HTTP. FastMCP's HTTP-related variables (MCP_PORT,PORT,MCP_HOST,MCP_PATH) are therefore without effect.
The SIMAP_MCP_DEBUG environment variable, when set to 1 or true, switches the HTTP client to verbose stderr logging:
- Full outbound URL (with all query parameters)
- Response status, byte size, and request duration
This is intended for local troubleshooting only. It is off by default precisely because the extra payload can contain user-intent data (search terms, CPV codes, canton filters) that should not leak into shared log infrastructure.