@pipeworx/mcp-epo-publication-server 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +169 -2
- package/bin/cli.js +17 -0
- package/package.json +30 -4
- package/server.json +18 -0
- package/src/index.ts +1109 -0
- package/src/server.ts +48 -0
- package/tsconfig.json +18 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mojibake Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,170 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @pipeworx/epo-publication-server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
As-published European patent documents — publication dates, per-date listings
|
|
4
|
+
with titles and applicants, and full document text (biblio, abstract, claims,
|
|
5
|
+
description) for granted patents and directly-filed applications. Keyless.
|
|
6
|
+
|
|
7
|
+
Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 1837+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
|
|
8
|
+
|
|
9
|
+
## Tools
|
|
10
|
+
|
|
11
|
+
- `eps_publication_dates(year?, from?, to?, limit?)` — EPO publication dates
|
|
12
|
+
(weekly, almost always Thursdays, back to 1978) with a real per-date
|
|
13
|
+
document count.
|
|
14
|
+
- `eps_list_publications(date, kind?, limit?)` — every EP publication issued
|
|
15
|
+
on one date, with kind code, title and applicant(s); reports the true total
|
|
16
|
+
before any filtering.
|
|
17
|
+
- `eps_get_document(number, kind?, part?)` — one publication's bibliographic
|
|
18
|
+
data, abstract, claims or description text, as published.
|
|
19
|
+
|
|
20
|
+
## Auth
|
|
21
|
+
|
|
22
|
+
Keyless. No account, no registration.
|
|
23
|
+
|
|
24
|
+
EPO states a fair-use cap of 5 GB per rolling 7-day window per calling IP,
|
|
25
|
+
confirmed live via the `x-quotaperweek-remaining`/`x-quotaperweek-used`
|
|
26
|
+
response headers. General EPO site terms apply; no EPS-specific
|
|
27
|
+
redistribution restriction was found.
|
|
28
|
+
|
|
29
|
+
## Data sources
|
|
30
|
+
|
|
31
|
+
- European Patent Office (EPO), European Publication Server — the
|
|
32
|
+
as-published XML/HTML of every EP patent application and granted European
|
|
33
|
+
patent.
|
|
34
|
+
|
|
35
|
+
## Notes for the next person
|
|
36
|
+
|
|
37
|
+
- **The list-by-date trap**: asking for a date that is not a real EPO
|
|
38
|
+
publication date (wrong day of week, a future date, a typo) answers
|
|
39
|
+
**HTTP 200** with a tiny HTML shell and zero entries — not a 404, not an
|
|
40
|
+
error. EPO has never actually had a genuinely empty publication date in
|
|
41
|
+
2,400+ weeks of history, so `eps_list_publications` treats zero parsed
|
|
42
|
+
entries as a loud failure rather than a silent empty list. Always get a
|
|
43
|
+
real date from `eps_publication_dates` first.
|
|
44
|
+
- **Most application (A-kind) publications carry NO claims/description text.**
|
|
45
|
+
The large majority of EP applications enter via the PCT route, and EPO
|
|
46
|
+
republishes only the bibliographic (SDOBI) record for those — the full
|
|
47
|
+
specification was already published as the WIPO (WO) pamphlet, so EPO does
|
|
48
|
+
not retype it. Full claims/description/drawings text is reliably present
|
|
49
|
+
for **granted (B-kind)** patents and for **directly-filed** (non-PCT)
|
|
50
|
+
applications. `eps_get_document` reports which case it hit (and names the
|
|
51
|
+
referenced WO publication when it's a PCT case) rather than returning an
|
|
52
|
+
empty part silently.
|
|
53
|
+
- **Document ids aren't just the publication number + kind.** The REST path
|
|
54
|
+
segment is a longer id like `EP4819826NWA1` — the publication number, an
|
|
55
|
+
internal marker (`NW` for the overwhelming majority of documents, `W1` for
|
|
56
|
+
a minority), and the kind code. `eps_list_publications` returns these ids
|
|
57
|
+
directly; `eps_get_document` also accepts a bare number + kind and tries
|
|
58
|
+
the common id forms in order.
|
|
59
|
+
- **A made-up document id does not 404 — it 500s** with a small JSON body
|
|
60
|
+
(`{"code":9000,"message":"Unhandled internal server error."}`). This is
|
|
61
|
+
actually easy to work with: `eps_get_document` tries its candidate ids and
|
|
62
|
+
reports `found:false` with the upstream status once all of them fail.
|
|
63
|
+
- What this adds over `mcps/epo-ops` (EPO Open Patent Services, OAuth2): the
|
|
64
|
+
as-published document text itself, keyless. `epo-ops` keeps INPADOC
|
|
65
|
+
worldwide legal status and CQL search across DOCDB (100+ patent offices);
|
|
66
|
+
this pack only ever sees EP publications.
|
|
67
|
+
|
|
68
|
+
## Quick Start
|
|
69
|
+
|
|
70
|
+
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
|
|
71
|
+
|
|
72
|
+
```json
|
|
73
|
+
{
|
|
74
|
+
"mcpServers": {
|
|
75
|
+
"epo-publication-server": {
|
|
76
|
+
"url": "https://gateway.pipeworx.io/epo-publication-server/mcp"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### What this endpoint actually serves
|
|
83
|
+
|
|
84
|
+
`tools/list` at `https://gateway.pipeworx.io/epo-publication-server/mcp` returns the tools in the table
|
|
85
|
+
above **plus the shared Pipeworx meta-tools** — `ask_pipeworx`,
|
|
86
|
+
`discover_tools`, `search_within`, `remember`/`recall` and the rest of the
|
|
87
|
+
gateway-wide set. So the tool count you see is larger than this table: a
|
|
88
|
+
single-pack endpoint currently lists roughly 30 shared tools alongside the
|
|
89
|
+
pack's own. The connection's `initialize` response states its exact scope, and
|
|
90
|
+
is the authoritative answer for a given day.
|
|
91
|
+
|
|
92
|
+
This is deliberate, not multiplexing by accident. The meta-tools are what let a
|
|
93
|
+
scoped connection answer a question this pack does not cover — via
|
|
94
|
+
`ask_pipeworx`, which routes across the whole catalog — without you adding a
|
|
95
|
+
second MCP server. There is currently no way to mount a pack endpoint without
|
|
96
|
+
them; if the extra schemas cost you more context than the routing is worth,
|
|
97
|
+
connect to the full gateway once rather than to several pack endpoints.
|
|
98
|
+
|
|
99
|
+
Or connect to the full Pipeworx gateway to get every pack's tools listed
|
|
100
|
+
directly, instead of just this one's:
|
|
101
|
+
|
|
102
|
+
```json
|
|
103
|
+
{
|
|
104
|
+
"mcpServers": {
|
|
105
|
+
"pipeworx": {
|
|
106
|
+
"url": "https://gateway.pipeworx.io/mcp"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Both URLs reach the same gateway and the same 1837+ data sources. The
|
|
113
|
+
only difference is which pack's tools are listed **directly**; `ask_pipeworx`
|
|
114
|
+
reaches all of them from either one.
|
|
115
|
+
|
|
116
|
+
## No MCP client? Call it over HTTP
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
curl -X POST https://gateway.pipeworx.io/v1/tools/eps_publication_dates \
|
|
120
|
+
-H 'Content-Type: application/json' \
|
|
121
|
+
-d '{"year":"2026","limit":5}'
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/eps_publication_dates`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
|
|
125
|
+
|
|
126
|
+
## Standalone (no gateway account)
|
|
127
|
+
|
|
128
|
+
This package also runs as a local stdio MCP server — no Pipeworx account, no
|
|
129
|
+
gateway round-trip:
|
|
130
|
+
|
|
131
|
+
```json
|
|
132
|
+
{
|
|
133
|
+
"mcpServers": {
|
|
134
|
+
"epo-publication-server": {
|
|
135
|
+
"command": "npx",
|
|
136
|
+
"args": ["-y", "@pipeworx/mcp-epo-publication-server"]
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Or run it directly to confirm it starts:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
npx -y @pipeworx/mcp-epo-publication-server
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
It speaks MCP over stdin/stdout and answers `initialize`/`tools/list`/`tools/call`
|
|
149
|
+
for **only** this pack's tools — none of the shared meta-tools the gateway
|
|
150
|
+
connection above adds. Same source, same tools, no ask_pipeworx routing.
|
|
151
|
+
|
|
152
|
+
## Using with ask_pipeworx
|
|
153
|
+
|
|
154
|
+
Instead of calling tools directly, you can ask questions in plain English —
|
|
155
|
+
this works on the pack endpoint above as well as on the full gateway:
|
|
156
|
+
|
|
157
|
+
```
|
|
158
|
+
ask_pipeworx({ question: "your question about Epo Publication Server data" })
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
The gateway picks the right tool and fills the arguments automatically.
|
|
162
|
+
|
|
163
|
+
## More
|
|
164
|
+
|
|
165
|
+
- [Docs and guides](https://pipeworx.io/docs)
|
|
166
|
+
- [pipeworx.io](https://pipeworx.io)
|
|
167
|
+
|
|
168
|
+
## License
|
|
169
|
+
|
|
170
|
+
MIT
|
package/bin/cli.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
//
|
|
3
|
+
// Entry point for `npx @pipeworx/mcp-<slug>`.
|
|
4
|
+
//
|
|
5
|
+
// Packs ship as raw TypeScript (no build step — see publish-pack.sh for why:
|
|
6
|
+
// tsx sidesteps every extensionless-import / bare-JSON-import edge case a
|
|
7
|
+
// per-pack tsc build would have to solve one pack at a time). This file
|
|
8
|
+
// registers tsx's ESM loader programmatically, then hands off to src/server.ts,
|
|
9
|
+
// which wraps the pack's {tools, callTool} export in a stdio MCP server.
|
|
10
|
+
//
|
|
11
|
+
// Copied verbatim into every published pack repo by scripts/publish-pack.sh —
|
|
12
|
+
// edit this file, not a per-pack copy.
|
|
13
|
+
import { register } from 'tsx/esm/api';
|
|
14
|
+
|
|
15
|
+
register();
|
|
16
|
+
|
|
17
|
+
await import('../src/server.ts');
|
package/package.json
CHANGED
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipeworx/mcp-epo-publication-server",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "EPO European Publication Server (EPS) MCP",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "src/index.ts",
|
|
7
|
+
"types": "src/index.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"mcp-epo-publication-server": "bin/cli.js"
|
|
10
|
+
},
|
|
11
|
+
"keywords": ["mcp", "mcp-server", "model-context-protocol", "pipeworx", "epo-publication-server"],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/pipeworx-io/mcp-epo-publication-server.git"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"typecheck": "tsc --noEmit"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
22
|
+
"tsx": "^4.19.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"typescript": "^5.9.3",
|
|
26
|
+
"@cloudflare/workers-types": "^4.20260405.1"
|
|
27
|
+
},
|
|
28
|
+
"pipeworx": {
|
|
29
|
+
"sourceHash": "v1-8ae2b12d11a59db30b29762c0c3ac75723b549b4929344190f9ffd9a6607d1b0",
|
|
30
|
+
"sourceCommit": "0f33463aa47677f38e4f177a4b4a7160dd80819f"
|
|
31
|
+
}
|
|
32
|
+
}
|
package/server.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
+
"name": "io.github.pipeworx-io/epo-publication-server",
|
|
4
|
+
"title": "Epo Publication Server",
|
|
5
|
+
"description": "EPO European Publication Server (EPS) MCP",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"websiteUrl": "https://pipeworx.io/packs/epo-publication-server",
|
|
8
|
+
"repository": {
|
|
9
|
+
"url": "https://github.com/pipeworx-io/mcp-epo-publication-server",
|
|
10
|
+
"source": "github"
|
|
11
|
+
},
|
|
12
|
+
"remotes": [
|
|
13
|
+
{
|
|
14
|
+
"type": "streamable-http",
|
|
15
|
+
"url": "https://gateway.pipeworx.io/epo-publication-server/mcp"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|