simap MCP Server
# simap MCP Server
[](./LICENSE)
[](https://www.npmjs.com/package/@digilac/simap-mcp)
[](https://github.com/Digilac/simap-mcp/actions/workflows/ci.yml)

[](https://deepwiki.com/Digilac/simap-mcp)
An [MCP](https://modelcontextprotocol.io/) (Model Context Protocol) server for interacting with [simap.ch](https://www.simap.ch/), Switzerland's public procurement platform.
Enables Claude and other AI assistants to search and view public tenders in Switzerland.
Developed by [Digilac](https://www.digilac.ch/).
## Features
| Tool | Description |
|------|-------------|
| `search_tenders` | Search tenders with filters (text, dates, types, cantons, CPV) |
| `get_tender_details` | Get full details of a specific tender |
| `search_cpv_codes` | Search CPV codes (Common Procurement Vocabulary) |
| `browse_cpv_tree` | Navigate CPV code hierarchy |
| `list_cantons` | List all Swiss cantons |
| `list_institutions` | List Swiss public institutions |
| `get_publication_history` | Get publication history for a project |
| `search_proc_offices` | Search public procurement offices |
| `search_bkp_codes` | Search BKP codes (construction) |
| `browse_bkp_tree` | Navigate BKP code hierarchy |
| `search_npk_codes` | Search NPK codes (standardized positions) |
| `browse_npk_tree` | Navigate NPK code hierarchy |
| `search_oag_codes` | Search OAG codes (object types) |
| `browse_oag_tree` | Navigate OAG code hierarchy |
| Prompt | Description |
|--------|-------------|
| `analyze_tender` | Structured bid/no-bid analysis of a tender (scope, deadlines, eligibility, award criteria, risks) |
## Prerequisites
- An MCP-compatible client — **[Claude Desktop](#claude-desktop-recommended) is the easiest** if you are not a developer.
- **Node.js ≥ 22** — *only* for clients that do not bundle it. Claude Desktop ships with its own Node.js, so there is nothing to install. For every other client, get it from [nodejs.org](https://nodejs.org/) (pick the LTS version).
- No simap account, no API key, no payment — the simap API is public and read-only.
## Installation & Configuration
### Claude Desktop (recommended)
1. In Claude Desktop, open **Settings → Developer → Edit Config**. This opens the folder holding `claude_desktop_config.json`:
- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
2. Open that file in a text editor and paste the block below. If the file already contains an `mcpServers` section, add only the `"simap"` entry inside it.
```json
{
"mcpServers": {
"simap": {
"command": "npx",
"args": ["-y", "@digilac/simap-mcp"]
}
}
}
```
3. Save the file, then **fully quit** Claude Desktop (macOS: ⌘Q — closing the window is not enough) and reopen it.
4. Check it worked: the simap tools now show up under the tools icon in the message box. Ask *"List the Swiss cantons in simap"* — Claude should answer with the 26 cantons.
The very first launch downloads the server, which takes a few seconds. If the tools do not appear, check **Settings → Developer** for the server status and logs.
### LM Studio
LM Studio follows the same `mcp.json` notation. Open the **Program** tab in the right-hand sidebar, then **Install → Edit mcp.json**, and add:
```json
{
"mcpServers": {
"simap": {
"command": "npx",
"args": ["-y", "@digilac/simap-mcp"]
}
}
}
```
> LM Studio does not bundle Node.js — install it from [nodejs.org](https://nodejs.org/) first. Tender search leans on the model's ability to chain tool calls, so results depend a lot on which local model you load.
### Code editors & developer tools
<details>
<summary><b>Claude Code, Cursor, VS Code, Windsurf</b></summary>
They all take the same snippet — only the file and the top-level key change:
| Client | Where | Top-level key |
| ------ | ----- | ------------- |
| **Claude Code** | `claude mcp add simap -- npx -y @digilac/simap-mcp` | `mcpServers` |
| **Cursor** | `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project) | `mcpServers` |
| **VS Code** (Copilot) | `.vscode/mcp.json`, or the **MCP: Open User Configuration** command | `servers` |
| **Windsurf** | `~/.codeium/windsurf/mcp_config.json` | `mcpServers` |
```json
{
"mcpServers": {
"simap": {
"command": "npx",
"args": ["-y", "@digilac/simap-mcp"]
}
}
}
```
- **Claude Code** — add `--scope user` to enable it in every project, or `--scope project` to write a `.mcp.json` shared with your team. Claude Code does **not** read `mcpServers` from `settings.json`. Verify with `claude mcp list`.
- **VS Code** uses `servers` as the top-level key, not `mcpServers`.
- **Cursor** loads MCP servers only at startup — quit and reopen it fully.
</details>
<details>
<summary><b>Alternative: global install</b></summary>
```bash
npm install -g @digilac/simap-mcp
```
Then point your client at the command directly:
```json
{
"mcpServers": {
"simap": {
"command": "simap-mcp"
}
}
}
```
</details>
<details>
<summary><b>Alternative: from source</b></summary>
```bash
git clone https://github.com/Digilac/simap-mcp.git
cd simap-mcp
npm install
npm run build
```
Then point your client at the absolute path:
```json
{
"mcpServers": {
"simap": {
"command": "node",
"args": ["/absolute/path/to/simap-mcp/dist/index.js"]
}
}
}
```
</details>
## Usage
Once configured, just ask your AI assistant in natural language. Mention "in simap" to make sure the assistant routes the request through the MCP server:
- *"Show me new tenders published today in simap"*
- *"Find construction tenders in canton Vaud in simap"*
- *"Give me the details of this tender in simap"* (after a search)
- *"Search CPV codes for IT services in simap"*
Clients that support MCP prompts also expose `analyze_tender`: in Claude Code, run `/mcp__simap__analyze_tender <simap.ch link>`; in Claude Desktop, pick it from the "+" menu and paste the tender's link.
### Network behaviour
- **Rate limit**: requests to simap.ch are throttled to 60 per minute; extra calls wait their turn instead of failing.
- **Caching**: reference data (cantons, institutions, CPV/BKP/NPK/OAG codes) is cached in memory for 24 hours, so repeated lookups are instant and don't use up the rate limit. Tenders and organization lookups are always fetched live. The cache is cleared when the server restarts.
- **Retries**: transient simap failures (HTTP 408 / 429 / 5xx, network errors) are retried up to 2 times with exponential backoff, honouring `Retry-After`.
## Listed on
* [Official MCP Registry](https://registry.modelcontextprotocol.io/?q=io.github.Digilac%2Fsimap-mcp)
* [Awesome MCP Servers](https://mcpservers.org/servers/digilac/simap-mcp)
* [LobeHub](https://lobehub.com/mcp/digilac-simap-mcp)
* [MCP.so](https://mcp.so/server/simap-mcp-server/Digilac)
* [MCP Market](https://mcpmarket.com/server/simap)
* [MCP Marketplace](https://mcp-marketplace.io/server/io-github-digilac-simap-mcp)
## Contributing
Contributions are welcome! See [CONTRIBUTING.md](./CONTRIBUTING.md) for development setup and commands, and [ARCHITECTURE.md](./ARCHITECTURE.md) for architecture, internal patterns, and the full tool parameter reference.
## simap API
This server uses the public API from [simap.ch](https://www.simap.ch/api-doc/).
## License
[MIT](./LICENSE)
TDQS
Scored across 14 tools
Each tool targets a distinct resource+action: search_tenders vs get_tender_details vs get_publication_history are clearly separated, and the four code systems (CPV, BKP, NPK, OAG) each have a clearly differentiated search_*_codes vs browse_*_tree pair. No two tools appear to do the same thing.
Uniform verb_noun snake_case throughout: search_*, browse_*, list_*, get_*. The code-system tools follow an identical template (search_X_codes / browse_X_tree), making the pattern highly predictable.
14 tools is well within a healthy range. The apparent repetition (four code systems x search+browse) is justified because each system is a genuinely different vocabulary an agent must query separately, and the remaining tools cover core tender workflows.
Strong read-only coverage: tender search, details, publication history, code lookups (search + hierarchy browse), institutions, cantons, and procurement offices. Minor gaps exist around fetching full tender documents/attachments or looking up a single code/institution by exact identifier, but core discovery workflows are complete.