Back to Browse

Swiss Ip MCP Server

Developer ToolsModerate5.2MCP RegistryLocal
Free

Server data from the Official MCP Registry

IGE/IPI Swissreg trademarks, patents, SPCs

About

IGE/IPI Swissreg trademarks, patents, SPCs

Security Report

5.2
Moderate5.2Moderate Risk

Well-structured MCP server with strong security controls: credentials are properly handled via environment variables (never hardcoded), outgoing requests are restricted to an explicit allow-list of IGE hosts, and error handling masks internal details from clients. Input validation is comprehensive via Pydantic models. The server correctly implements read-only operations over public data. Minor code-quality findings (broad exception handling, potential null dereferences) and one config-validation timing issue do not significantly impact security given the server's purpose and threat model. Supply chain analysis found 5 known vulnerabilities in dependencies (1 critical, 3 high severity). Package verification found 1 issue.

3 files analyzed ยท 10 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

env_vars

Check that this permission is expected for this type of plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

What You'll Need

Set these up before or after installing:

Username for the Swiss Federal Institute of Intellectual Property (IGE/IPI) Swissreg API. Issued by IGE after signing the terms of use.Required

Environment variable: IGE_USERNAME

Password for the IGE/IPI Swissreg account.Required

Environment variable: IGE_PASSWORD

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-malkreide-swiss-ip-mcp": {
      "env": {
        "IGE_PASSWORD": "your-ige-password-here",
        "IGE_USERNAME": "your-ige-username-here"
      },
      "args": [
        "swiss-ip-mcp"
      ],
      "command": "uvx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

๐Ÿ‡จ๐Ÿ‡ญ Part of the Swiss Public Data MCP Portfolio

๐Ÿ’ก swiss-ip-mcp

MCP Server for Swiss Intellectual Property Data (IGE/IPI)

Version License: MIT Python 3.11+ MCP Data Source CI

๐Ÿ‡ฉ๐Ÿ‡ช Deutsche Version โ†’ README.de.md


Overview

swiss-ip-mcp is a Model Context Protocol (MCP) server that gives AI models structured, language-driven access to the Swiss intellectual property register Swissreg, operated by the Swiss Federal Institute of Intellectual Property (IGE/IPI).

It is the successor to patent-mcp and covers all available domains of the Swissreg Datadelivery API: trademarks, patents, patent publications, and supplementary protection certificates (SPC/ESZ).

This server is model-agnostic. It works with Claude, GPT-4, Llama, and any other MCP-compatible client โ€“ not just Claude Desktop.

Demo: Claude querying the Swiss trademark register via swiss-ip-mcp


Example Queries

The real power is natural language. Instead of manually searching the register, just ask a question:

"Which trademarks does the City of Zurich hold at the IGE?"

"Is the name 'Learning City Zurich' registered as a trademark in Switzerland?"

"Which pharmaceutical companies have filed Swiss patents in the last six months?"

"Show me all trademark applications in the education sector (Nice class 41) since January 2025."

"What supplementary protection certificates does Novartis hold in Switzerland?"


Covered Domains

DomainDescription
TrademarksSwiss trademark register โ€“ filing, protection, owners, Nice classes
PatentsCH patents โ€“ filing, grant, IPC classes, applicants, inventors
Patent publicationsOfficial patent publications in the Swiss Official Gazette
SPC / ESZSupplementary protection certificates for medicinal and plant-protection products

Note: Design search is not yet available in the Swissreg Datadelivery API.


Tools (11)

ToolFunction
swiss_ip_search_trademarksFree-text trademark search (wildcard * supported)
swiss_ip_get_trademarkRetrieve a trademark by registration number
swiss_ip_search_trademarks_by_ownerFind all trademarks held by a given owner
swiss_ip_search_trademarks_by_classFilter trademarks by Nice classification class
swiss_ip_search_patentsFree-text patent search
swiss_ip_get_patentRetrieve a patent by number
swiss_ip_search_patents_by_applicantFind patents by applicant or inventor name
swiss_ip_search_patent_publicationsSearch patent publications
swiss_ip_search_spcSPC/ESZ search (pharma and plant protection)
swiss_ip_search_recent_filingsFilter filings by date range across all domains
swiss_ip_get_quotaCheck remaining API data transfer quota

Resources & Prompts

Beyond tools, the server exposes two more MCP primitives:

Resources (read-only metadata, swissip:// URI scheme):

URIContent
swissip://aboutServer + data-source metadata (provenance, covered domains)
swissip://domainsList of covered IP domains

Prompts (curated workflow templates):

PromptArgumentsPurpose
trademark_availabilitynameCheck whether a name is a registered Swiss trademark
competitor_ip_reportcompanyIP overview (trademarks + patents) for a company
recent_ip_filings_reportip_type, date_from, date_toReport on recent filings in a period

Error semantics

Tool execution errors (API failures, timeouts, missing credentials) are returned with MCP isError: true and a masked, user-friendly message โ€” internal details (stack traces, raw API bodies) go only to the server log. A specific number lookup that finds nothing is not an error: it returns a normal result with match_type: "none" and a message.


Project Phase

This server is in Phase 1 (read-only) of the MCP phased-rollout model: every tool is read-only and writes nothing. See ROADMAP.md for the phase plan and the prerequisites for any future write-capable phase.


Architecture

AI client (Claude Desktop, Cursor, VS Code + Continue, โ€ฆ)
         โ”‚
         โ”‚  MCP (stdio or SSE)
         โ–ผ
   swiss-ip-mcp
         โ”‚
         โ”‚  HTTPS + OAuth2 (IGE IDP)
         โ–ผ
  Swissreg Datadelivery API
  https://www.swissreg.ch/public/api/v1
         โ”‚
         โ”œโ”€โ”€ TrademarkSearch
         โ”œโ”€โ”€ PatentSearch
         โ”œโ”€โ”€ PatentPublicationSearch
         โ”œโ”€โ”€ SPCSearch
         โ””โ”€โ”€ UserQuota

Transport Modes

TransportUse caseConfiguration
stdioClaude Desktop, local developmentDefault (no extra setup)
Streamable HTTPCloud deployment (Render.com etc.)MCP_TRANSPORT=streamable-http
SSELegacy HTTP clientsMCP_TRANSPORT=sse

Transport is selected at startup from the MCP_TRANSPORT environment variable (default stdio). The HTTP transports are served by uvicorn and honour:

VariableDefaultPurpose
MCP_HOST127.0.0.1Bind address. Use 0.0.0.0 only inside a container / behind a reverse proxy.
PORT / MCP_PORT8000Bind port (PORT wins โ€” PaaS convention).
MCP_ALLOWED_ORIGINS(empty)Comma-separated CORS origin allow-list. No wildcard in production.
MCP_ALLOWED_HOSTS(empty)Comma-separated Host-header allow-list; enables DNS-rebinding protection when set.

The Mcp-Session-Id header is exposed via CORS so browser-based clients can read and echo it on follow-up requests.


Prerequisites

  1. IGE credentials (free): Sign the terms of use and send the form by post to the IGE. Credentials are issued upon receipt.
  2. Python 3.11 or later
  3. uv (recommended) or pip

Installation

# Run directly with uv (recommended, no local installation needed)
uvx swiss-ip-mcp

# Local development installation
git clone https://github.com/malkreide/swiss-ip-mcp
cd swiss-ip-mcp
pip install -e ".[dev]"

Configuration

Environment Variables

export IGE_USERNAME="your_username"
export IGE_PASSWORD="your_password"

Claude Desktop

Open the config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "swiss-ip": {
      "command": "uvx",
      "args": ["swiss-ip-mcp"],
      "env": {
        "IGE_USERNAME": "your_username",
        "IGE_PASSWORD": "your_password"
      }
    }
  }
}

Other MCP Clients

swiss-ip-mcp is compatible with any MCP-capable client:

ClientConfiguration
CursorAdd to ~/.cursor/mcp.json (same format as Claude Desktop)
VS Code + ContinueAdd via continue.json MCP server block
WindsurfAdd via MCP server settings
Self-hosted (mcp-proxy)Use SSE transport with MCP_TRANSPORT=sse

Cloud / Render.com (Streamable HTTP)

MCP_TRANSPORT=streamable-http \
  MCP_HOST=0.0.0.0 PORT=8000 \
  MCP_ALLOWED_ORIGINS="https://your-client.example" \
  MCP_ALLOWED_HOSTS="your-app.onrender.com" \
  IGE_USERNAME=... IGE_PASSWORD=... \
  swiss-ip-mcp

Security note: bind to 0.0.0.0 only inside a container or behind a reverse proxy. Always set MCP_ALLOWED_ORIGINS and MCP_ALLOWED_HOSTS for public deployments โ€” this enables CORS scoping and DNS-rebinding protection. The endpoint is unauthenticated and serves only public IP-register data; do not place credentialed or non-public tools behind this transport without adding authentication first.

Docker / Kubernetes

A hardened multi-stage Dockerfile (non-root UID 10001, HEALTHCHECK on /health), a docker-compose.yml with resource limits, and Kubernetes manifests + an HAProxy sticky-session config under deploy/ are included.

docker compose up --build   # reads IGE_* from .env

See docs/deployment.md for hardening, resource limits and scaling (stateless vs. sticky-session) details.


Tests

# Unit tests (no credentials needed)
PYTHONPATH=src pytest tests/ -v

# Including live integration tests against the real API
IGE_USERNAME=... IGE_PASSWORD=... PYTHONPATH=src pytest tests/ -v

The CI workflow runs on Python 3.11, 3.12, and 3.13.


Observability (optional)

The server can emit OpenTelemetry traces โ€” one span per tool call plus child spans for the backend Swissreg/IDP HTTP calls. Tracing is off by default and adds no overhead until enabled.

pip install 'swiss-ip-mcp[otel]'

MCP_OTEL_ENABLED=1 \
  OTEL_EXPORTER_OTLP_ENDPOINT=http://your-collector:4318 \
  MCP_ENV=production \
  swiss-ip-mcp
VariablePurpose
MCP_OTEL_ENABLEDSet to 1 to enable trace export (or just set the endpoint below).
OTEL_EXPORTER_OTLP_ENDPOINTOTLP/HTTP collector endpoint (standard OTEL variable).
MCP_ENVValue for the deployment.environment resource attribute (default production).

Tool spans carry only mcp.tool.name and mcp.tool.result.is_error โ€” no query arguments, credentials or response bodies are recorded.

Logging

The server logs structured JSON to stderr (stdout is reserved for the stdio protocol). Every tool call binds a tool name and a correlation_id, so all log lines for one call are correlated. Set the level with LOG_LEVEL (DEBUG / INFO / WARNING / ERROR, default INFO):

{"event": "tool.call.start", "tool": "swiss_ip_search_trademarks", "correlation_id": "da55โ€ฆ", "level": "info", "timestamp": "โ€ฆZ"}

MCP Protocol Version

This server speaks two protocol eras over the same endpoint. The client's first request on a connection decides which one applies; a later claim from the other era is refused.

EraRevisionWho reaches it
initialize handshake2024-11-05 โ€ฆ 2025-11-25What today's clients speak. The server answers with the revision asked for, or with the 2025-11-25 ceiling when the request asks for something newer.
Per-request envelope2026-07-28A request carrying the 2026-07-28 _meta envelope opens a modern connection.

Both revisions are pinned in tests/test_protocol_version.py and asserted against the installed SDK, so a Dependabot bump of mcp cannot move either one silently. This server builds no ASGI app to send an initialize through, so the gate asserts the SDK constants rather than a measured response โ€” the weaker form, named rather than left unsaid.

Note that the SDK's LATEST_PROTOCOL_VERSION is an alias for the modern era, not for the handshake era โ€” pinning against it alone would leave the era that current clients actually negotiate free to drift.

Update policy. When the gate fails, do not edit the constant blindly: read the spec changelog between the two revisions, verify the server still behaves, then move the constant, this section, README.de.md and CHANGELOG.md together.


Data Source

All data is provided by the IGE/IPI Swissreg Datadelivery API. The API is free after signing the usage terms, subject to a monthly data transfer quota. Check your remaining quota at any time using the swiss_ip_get_quota tool.

FieldValue
ProviderSwiss Federal Institute of Intellectual Property (IGE/IPI)
SourceSwissreg Datadelivery API โ€” https://www.swissreg.ch/public/apidocs/
License / termsIGE/IPI Swissreg Datadelivery API Terms of Use

Provenance: every tool response carries a source block (provider, source URL, license) so downstream consumers retain attribution. The result envelope is { source, total, count, match_type, results, next_page_token }.


Safety & Limits

  • Read-only: All tools perform authenticated POST requests to the Swissreg API โ€” no data is written, modified, or deleted on any system.
  • No personal data: The API returns public IP register entries (trademark names, patent titles, applicant organisations). No personally identifiable information (PII) is processed or stored by this server beyond what the IGE API returns in its public records.
  • Rate limits & quota: The IGE Swissreg API enforces a monthly data transfer quota per account. Use the swiss_ip_get_quota tool to monitor remaining quota. The server enforces a 60s timeout per request. Avoid large page_size values (>20) for exploratory queries.
  • Authentication: Credentials (IGE_USERNAME, IGE_PASSWORD) are read from environment variables at runtime and never logged or persisted.
  • Terms of service: Data is subject to the IGE Swissreg Datadelivery API terms of use. A signed usage agreement with IGE/IPI is required before API access is granted.
  • Address list verified without credentials (2026-08-08). Every address, the Keycloak realm and the client_id this server builds are the ones the source publishes. A null result โ€” and recorded as one, because a null result nobody wrote down is not one on the next pass. Three independent proofs, because one would not have carried:
    • The IDP discriminates: realms/egov with wrong credentials โ†’ invalid_grant ("Invalid user credentials"); an invented realm โ†’ 404 "Realm does not exist"; an invented client_id โ†’ invalid_client. So realm and client exist and only the credentials are missing.
    • The realm declares its own token endpoint under .well-known/openid-configuration โ€” identical to the URL built here.
    • The official API documentation states both addresses verbatim, including the client_id as a "constant string".
  • Why the third proof is needed: the Swissreg API itself does not discriminate. A POST without a token returns 403, with an invented token 401 โ€” and a freely invented path under /public/api/ returns exactly the same. A status code proves nothing there. scripts/record_fixtures.py re-measures this on every run and aborts if a control stops discriminating.
  • Response payloads are not recorded. They need credentials; PROVENANCE.md lists them as NOT RECORDED with the measured status rather than giving them a date they never had. What stays unproven is the shape of the responses โ€” whether the XML fields are named as the parser reads them.
  • No guarantees: This server is a community project, not affiliated with the Swiss Federal Institute of Intellectual Property (IGE/IPI). Availability depends on upstream API uptime.

Related Servers

ServerContent
zurich-opendata-mcpCity of Zurich open data (CKAN, weather, parking, geodata)
fedlex-mcpSwiss federal law via Fedlex SPARQL
swiss-transport-mcpPublic transport, disruptions, tickets, train formations
swiss-road-mobility-mcpShared mobility, EV charging stations, traffic data
global-education-mcpUNESCO / OECD education data
patent-mcpโš ๏ธ Deprecated โ€“ superseded by this server

Contributing

See CONTRIBUTING.md (Deutsch) for how to report bugs and submit changes.


Security

See SECURITY.md for the security posture, hardening summary, and how to report a vulnerability.


License

MIT License โ€” see LICENSE


Author

Hayal Oezkan ยท github.com/malkreide

Installation

Run via uv's uvx โ€” no clone or manual install needed. Add to your MCP client config (mcpServers for Claude Desktop, Cursor and Windsurf; use a top-level servers key for VS Code in .vscode/mcp.json):

{
  "mcpServers": {
    "swiss-ip-mcp": {
      "command": "uvx",
      "args": [
        "swiss-ip-mcp"
      ],
      "env": {
        "IGE_USERNAME": "<your IGE_USERNAME>",
        "IGE_PASSWORD": "<your IGE_PASSWORD>"
      }
    }
  }
}

Requires credentials: set IGE_USERNAME, IGE_PASSWORD (replace the placeholder values above).

Reviews

No reviews yet

Be the first to review this server!