
Swiss Ip Mcp
io.github.malkreide由 GitHub 帳號 malkreide 發布v1.2.0更新於 Oct 27, 2026
IGE/IPI Swissreg trademarks, patents, SPCs
概覽
唯讀 MCP 伺服器,讓助理查詢瑞士智慧財產登記冊 Swissreg 的商標、專利、專利公告與補充保護證書。
- 可以做什麼
- 以自由文字、註冊號、持有人或尼斯分類搜尋並取得商標
- 以自由文字、專利號、申請人或發明人搜尋並取得專利
- 搜尋瑞士官方公報中的專利公告
- 搜尋醫藥與植物保護領域的補充保護證書(SPC/ESZ)
- 依日期範圍篩選各領域的最新申請,並查詢剩餘 API 配額
- 讀取伺服器中繼資料資源,並執行商標可用性、競爭對手智財報告等預設提示詞
- 適用情境
- 適合在對話中取得瑞士智慧財產事實:確認某名稱是否已在瑞士註冊為商標、整理某公司的商標與專利,或檢視近期申請與補充保護證書。所有工具皆為唯讀,適合研究與報告,而非登記冊管理。
- 執行需求
- 以 stdio 在本機執行,通常透過 PyPI 的 uvx 啟動,需要 Python 3.11 以上版本以及 uv 或 pip。需要免費的 IGE/IPI Swissreg API 憑證:簽署使用條款並以郵寄方式送出表單後由 IGE 核發,透過 IGE_USERNAME 與 IGE_PASSWORD 提供。需要連線至 Swissreg Datadelivery API 的網路。選用的 HTTP 傳輸另需主機、連接埠、CORS 與 Host 允許清單變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Swiss Ip Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
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
Note: Design search is not yet available in the Swissreg Datadelivery API.
Tools (11)
Resources & Prompts
Beyond tools, the server exposes two more MCP primitives:
Resources (read-only metadata, swissip:// URI scheme):
Prompts (curated workflow templates):
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
Transport Modes
SSE is deprecated. Protocol revision
2026-07-28reclassified the HTTP+SSE transport as Deprecated under the feature lifecycle policy (SEP-2596; it had been soft-deprecated since2025-03-26). It stays available here for the twelve-month deprecation window — new deployments should useMCP_TRANSPORT=streamable-http.
Transport is selected at startup from the MCP_TRANSPORT environment variable
(default stdio). The HTTP transports are served by uvicorn and honour:
The Mcp-Session-Id header is exposed via CORS so browser-based clients can
read and echo it on follow-up requests.
Prerequisites
- IGE credentials (free): Sign the terms of use and send the form by post to the IGE. Credentials are issued upon receipt.
- Python 3.11 or later
uv(recommended) orpip
Installation
Configuration
Environment Variables
Claude Desktop
Open the config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Other MCP Clients
swiss-ip-mcp is compatible with any MCP-capable client:
Cloud / Render.com (Streamable HTTP)
Security note: bind to
0.0.0.0only inside a container or behind a reverse proxy. Always setMCP_ALLOWED_ORIGINSandMCP_ALLOWED_HOSTSfor 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.
See docs/deployment.md for hardening, resource limits and
scaling (stateless vs. sticky-session) details.
Tests
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.
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):
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.
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.
On top of that, tests/test_modern_era.py measures
both eras: it sends real requests — a 2026-07-28 _meta envelope with the
Mcp-Method / Mcp-Protocol-Version routing headers, and a legacy
initialize — through the assembled ASGI app and asserts what comes back.
Earlier revisions of this section claimed the opposite ("this server builds no
ASGI app to send an initialize through"), and that was never true:
_build_http_app() builds one, and tests/test_cors.py had been sending
requests through it all along. The gate rested on SDK constants for a reason
that did not hold.
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.
Server identity
Under 2026-07-28 the server identifies itself in every result's _meta
(io.modelcontextprotocol/serverInfo, SEP-2575), not once in an initialize
response. This server reports its package version and websiteUrl there; it
carried the SDK default of an empty version string until that was measured
and fixed. icons is deliberately unset — the repo ships no icon asset.
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.
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_quotatool to monitor remaining quota. The server enforces a 60s timeout per request. Avoid largepage_sizevalues (>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_idthis 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/egovwith wrong credentials →invalid_grant("Invalid user credentials"); an invented realm → 404 "Realm does not exist"; an inventedclient_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_idas a "constant string".
- The IDP discriminates:
- 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.pyre-measures this on every run and aborts if a control stops discriminating. - Response payloads are recorded since 2026-10-04 (
tests/fixtures/live/, with its ownRECORDING.md): real structure, synthetic text values. Until credentials arrived they were listed as NOT RECORDED, and that gap had a price. The handwritten fixtures named the record elementsItemand the counterTotalCount— exactly what the parser looked for. The source calls them neither: records are children ofResultcarryingrole="item", the counter isMeta/TotalItemCount. Both were wrong in the same way, so every search tool returned zero hits while 171 unit tests stayed green. Measured in runs 37198882345 and 37201829767. - 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
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):
Requires credentials: set IGE_USERNAME, IGE_PASSWORD (replace the placeholder values above).
來源:README.md,提交 d6d2d40
工具
0版本歷史
2- v1.2.0最新Sep 27, 2026
- v1.1.6Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分