@ansvar/eu-regulations-mcp 0.1.0 → 0.2.1
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 +190 -21
- package/README.md +159 -26
- package/data/seed/aifmd.json +432 -0
- package/data/seed/applicability/ai-act.json +87 -0
- package/data/seed/applicability/aifmd.json +74 -0
- package/data/seed/applicability/cbam.json +74 -0
- package/data/seed/applicability/cer.json +74 -0
- package/data/seed/applicability/cra.json +77 -0
- package/data/seed/applicability/csddd.json +74 -0
- package/data/seed/applicability/csrd.json +74 -0
- package/data/seed/applicability/cyber_solidarity.json +74 -0
- package/data/seed/applicability/cybersecurity-act.json +69 -0
- package/data/seed/applicability/data-act.json +71 -0
- package/data/seed/applicability/dga.json +74 -0
- package/data/seed/applicability/dma.json +77 -0
- package/data/seed/applicability/dsa.json +71 -0
- package/data/seed/applicability/eecc.json +74 -0
- package/data/seed/applicability/ehds.json +74 -0
- package/data/seed/applicability/eidas2.json +86 -0
- package/data/seed/applicability/eprivacy.json +74 -0
- package/data/seed/applicability/eu_taxonomy.json +74 -0
- package/data/seed/applicability/eucc.json +74 -0
- package/data/seed/applicability/eudr.json +74 -0
- package/data/seed/applicability/gpsr.json +74 -0
- package/data/seed/applicability/ivdr.json +74 -0
- package/data/seed/applicability/led.json +74 -0
- package/data/seed/applicability/machinery.json +74 -0
- package/data/seed/applicability/mdr.json +74 -0
- package/data/seed/applicability/mica.json +74 -0
- package/data/seed/applicability/mifid2.json +74 -0
- package/data/seed/applicability/mifir.json +74 -0
- package/data/seed/applicability/pld.json +74 -0
- package/data/seed/applicability/psd2.json +74 -0
- package/data/seed/applicability/red.json +74 -0
- package/data/seed/applicability/sfdr.json +74 -0
- package/data/seed/applicability/un-r155.json +68 -0
- package/data/seed/applicability/un-r156.json +68 -0
- package/data/seed/cbam.json +397 -0
- package/data/seed/cer.json +233 -0
- package/data/seed/csddd.json +205 -0
- package/data/seed/csrd.json +50 -0
- package/data/seed/cyber_solidarity.json +252 -0
- package/data/seed/data-act.json +517 -0
- package/data/seed/dga.json +342 -0
- package/data/seed/dma.json +499 -0
- package/data/seed/dsa.json +686 -0
- package/data/seed/eecc.json +981 -0
- package/data/seed/ehds.json +638 -0
- package/data/seed/eidas2.json +590 -0
- package/data/seed/eprivacy.json +115 -0
- package/data/seed/eu_taxonomy.json +285 -0
- package/data/seed/eucc.json +386 -0
- package/data/seed/eudr.json +401 -0
- package/data/seed/gpsr.json +462 -0
- package/data/seed/ivdr.json +1036 -0
- package/data/seed/led.json +480 -0
- package/data/seed/machinery.json +513 -0
- package/data/seed/mappings/iso27001-ai-act.json +114 -0
- package/data/seed/mappings/iso27001-aifmd.json +50 -0
- package/data/seed/mappings/iso27001-cbam.json +26 -0
- package/data/seed/mappings/iso27001-cer.json +74 -0
- package/data/seed/mappings/iso27001-cra.json +130 -0
- package/data/seed/mappings/iso27001-csddd.json +50 -0
- package/data/seed/mappings/iso27001-csrd.json +26 -0
- package/data/seed/mappings/iso27001-cyber_solidarity.json +82 -0
- package/data/seed/mappings/iso27001-cybersecurity-act.json +90 -0
- package/data/seed/mappings/iso27001-data-act.json +66 -0
- package/data/seed/mappings/iso27001-dga.json +50 -0
- package/data/seed/mappings/iso27001-dma.json +50 -0
- package/data/seed/mappings/iso27001-dsa.json +58 -0
- package/data/seed/mappings/iso27001-eecc.json +74 -0
- package/data/seed/mappings/iso27001-ehds.json +90 -0
- package/data/seed/mappings/iso27001-eidas2.json +106 -0
- package/data/seed/mappings/iso27001-eprivacy.json +66 -0
- package/data/seed/mappings/iso27001-eu_taxonomy.json +34 -0
- package/data/seed/mappings/iso27001-eucc.json +66 -0
- package/data/seed/mappings/iso27001-eudr.json +34 -0
- package/data/seed/mappings/iso27001-gpsr.json +42 -0
- package/data/seed/mappings/iso27001-ivdr.json +66 -0
- package/data/seed/mappings/iso27001-led.json +74 -0
- package/data/seed/mappings/iso27001-machinery.json +50 -0
- package/data/seed/mappings/iso27001-mdr.json +82 -0
- package/data/seed/mappings/iso27001-mica.json +66 -0
- package/data/seed/mappings/iso27001-mifid2.json +66 -0
- package/data/seed/mappings/iso27001-mifir.json +42 -0
- package/data/seed/mappings/iso27001-pld.json +26 -0
- package/data/seed/mappings/iso27001-psd2.json +82 -0
- package/data/seed/mappings/iso27001-red.json +42 -0
- package/data/seed/mappings/iso27001-sfdr.json +50 -0
- package/data/seed/mappings/iso27001-un-r155.json +130 -0
- package/data/seed/mappings/iso27001-un-r156.json +106 -0
- package/data/seed/mappings/nist-csf-ai-act.json +138 -0
- package/data/seed/mappings/nist-csf-aifmd.json +58 -0
- package/data/seed/mappings/nist-csf-cbam.json +42 -0
- package/data/seed/mappings/nist-csf-cer.json +90 -0
- package/data/seed/mappings/nist-csf-cra.json +130 -0
- package/data/seed/mappings/nist-csf-csddd.json +50 -0
- package/data/seed/mappings/nist-csf-csrd.json +34 -0
- package/data/seed/mappings/nist-csf-cyber_solidarity.json +90 -0
- package/data/seed/mappings/nist-csf-cybersecurity-act.json +90 -0
- package/data/seed/mappings/nist-csf-data-act.json +50 -0
- package/data/seed/mappings/nist-csf-dga.json +58 -0
- package/data/seed/mappings/nist-csf-dma.json +42 -0
- package/data/seed/mappings/nist-csf-dora.json +210 -0
- package/data/seed/mappings/nist-csf-dsa.json +82 -0
- package/data/seed/mappings/nist-csf-eecc.json +90 -0
- package/data/seed/mappings/nist-csf-ehds.json +98 -0
- package/data/seed/mappings/nist-csf-eidas2.json +114 -0
- package/data/seed/mappings/nist-csf-eprivacy.json +58 -0
- package/data/seed/mappings/nist-csf-eu_taxonomy.json +34 -0
- package/data/seed/mappings/nist-csf-eucc.json +66 -0
- package/data/seed/mappings/nist-csf-eudr.json +58 -0
- package/data/seed/mappings/nist-csf-gdpr.json +178 -0
- package/data/seed/mappings/nist-csf-gpsr.json +58 -0
- package/data/seed/mappings/nist-csf-ivdr.json +66 -0
- package/data/seed/mappings/nist-csf-led.json +74 -0
- package/data/seed/mappings/nist-csf-machinery.json +58 -0
- package/data/seed/mappings/nist-csf-mdr.json +66 -0
- package/data/seed/mappings/nist-csf-mica.json +98 -0
- package/data/seed/mappings/nist-csf-mifid2.json +74 -0
- package/data/seed/mappings/nist-csf-mifir.json +50 -0
- package/data/seed/mappings/nist-csf-nis2.json +194 -0
- package/data/seed/mappings/nist-csf-pld.json +34 -0
- package/data/seed/mappings/nist-csf-psd2.json +98 -0
- package/data/seed/mappings/nist-csf-red.json +58 -0
- package/data/seed/mappings/nist-csf-sfdr.json +42 -0
- package/data/seed/mappings/nist-csf-un-r155.json +130 -0
- package/data/seed/mappings/nist-csf-un-r156.json +98 -0
- package/data/seed/mdr.json +1066 -0
- package/data/seed/mica.json +1003 -0
- package/data/seed/mifid2.json +906 -0
- package/data/seed/mifir.json +512 -0
- package/data/seed/pld.json +244 -0
- package/data/seed/psd2.json +827 -0
- package/data/seed/red.json +452 -0
- package/data/seed/sfdr.json +228 -0
- package/data/seed/un-r155.json +166 -0
- package/data/seed/un-r156.json +150 -0
- package/dist/http-server.d.ts +9 -0
- package/dist/http-server.d.ts.map +1 -0
- package/dist/http-server.js +342 -0
- package/dist/http-server.js.map +1 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/tools/map.d.ts +1 -1
- package/dist/tools/map.d.ts.map +1 -1
- package/dist/tools/map.js +3 -3
- package/dist/tools/map.js.map +1 -1
- package/package.json +8 -3
- package/scripts/build-db.ts +20 -8
- package/scripts/check-updates.ts +141 -39
- package/scripts/ingest-eurlex.ts +9 -1
- package/scripts/ingest-unece.ts +368 -0
- package/src/http-server.ts +380 -0
- package/src/index.ts +4 -4
- package/src/tools/map.ts +4 -4
package/LICENSE
CHANGED
|
@@ -1,21 +1,190 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 Ansvar Systems AB
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**The first open-source MCP server for European cybersecurity regulations.**
|
|
4
4
|
|
|
5
|
-
Query DORA, NIS2, GDPR,
|
|
5
|
+
Query **37 EU regulations** including DORA, NIS2, GDPR, AI Act, MiFID II, EHDS, and more — directly from Claude, Cursor, or any MCP-compatible client.
|
|
6
6
|
|
|
7
7
|
Built by [Ansvar Systems](https://ansvar.ai) — Stockholm, Sweden
|
|
8
8
|
|
|
@@ -18,20 +18,76 @@ No more tab-switching. No more "wait, what article was that?" Just ask.
|
|
|
18
18
|
|
|
19
19
|
## What's Included
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
|
25
|
-
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
### 37 Regulations — Full Text, Searchable
|
|
22
|
+
|
|
23
|
+
**Core Data Protection & Cybersecurity**
|
|
24
|
+
| Regulation | Articles | Definitions |
|
|
25
|
+
|------------|----------|-------------|
|
|
26
|
+
| GDPR | 99 | 26 |
|
|
27
|
+
| NIS2 | 46 | 41 |
|
|
28
|
+
| DORA | 64 | 65 |
|
|
29
|
+
| AI Act | 113 | 68 |
|
|
30
|
+
| Cyber Resilience Act | 71 | 51 |
|
|
31
|
+
| EU Cybersecurity Act | 69 | 22 |
|
|
32
|
+
| Cyber Solidarity Act | 26 | 17 |
|
|
33
|
+
| ePrivacy Directive | 21 | — |
|
|
34
|
+
| Law Enforcement Directive | 65 | 16 |
|
|
35
|
+
| EUCC (Cybersecurity Certification) | 50 | 15 |
|
|
36
|
+
|
|
37
|
+
**Digital Services & Identity**
|
|
38
|
+
| Regulation | Articles | Definitions |
|
|
39
|
+
|------------|----------|-------------|
|
|
40
|
+
| eIDAS 2.0 | 49 | 57 |
|
|
41
|
+
| Data Act | 50 | 42 |
|
|
42
|
+
| DSA | 93 | 24 |
|
|
43
|
+
| DMA | 54 | 33 |
|
|
44
|
+
| Data Governance Act | 38 | 21 |
|
|
45
|
+
| EECC (Electronic Communications) | 128 | 42 |
|
|
46
|
+
|
|
47
|
+
**Healthcare & Medical**
|
|
48
|
+
| Regulation | Articles | Definitions |
|
|
49
|
+
|------------|----------|-------------|
|
|
50
|
+
| EHDS (Health Data Space) | 105 | — |
|
|
51
|
+
| MDR (Medical Devices) | 123 | 64 |
|
|
52
|
+
| IVDR (In Vitro Diagnostics) | 113 | 70 |
|
|
53
|
+
|
|
54
|
+
**Financial Services**
|
|
55
|
+
| Regulation | Articles | Definitions |
|
|
56
|
+
|------------|----------|-------------|
|
|
57
|
+
| MiCA (Crypto-Assets) | 149 | 51 |
|
|
58
|
+
| PSD2 (Payment Services) | 117 | 48 |
|
|
59
|
+
| MiFID II | 97 | 63 |
|
|
60
|
+
| MiFIR | 55 | 47 |
|
|
61
|
+
| AIFMD | 71 | — |
|
|
62
|
+
| SFDR (ESG Disclosure) | 20 | 24 |
|
|
63
|
+
| EU Taxonomy | 27 | 23 |
|
|
64
|
+
|
|
65
|
+
**Product Safety & Sustainability**
|
|
66
|
+
| Regulation | Articles | Definitions |
|
|
67
|
+
|------------|----------|-------------|
|
|
68
|
+
| GPSR (Product Safety) | 52 | 28 |
|
|
69
|
+
| Machinery Regulation | 54 | 36 |
|
|
70
|
+
| PLD (Product Liability) | 24 | 18 |
|
|
71
|
+
| RED (Radio Equipment) | 52 | 26 |
|
|
72
|
+
| CSRD (Sustainability Reporting) | 8 | — |
|
|
73
|
+
| CSDDD (Due Diligence) | 39 | — |
|
|
74
|
+
| CBAM (Carbon Border) | 36 | 34 |
|
|
75
|
+
| EUDR (Deforestation) | 38 | 40 |
|
|
76
|
+
| CER (Critical Entities) | 29 | 10 |
|
|
77
|
+
|
|
78
|
+
**Automotive**
|
|
79
|
+
| Regulation | Articles | Definitions |
|
|
80
|
+
|------------|----------|-------------|
|
|
81
|
+
| UN R155 (Vehicle Cybersecurity) | 17 | 13 |
|
|
82
|
+
| UN R156 (Software Updates) | 16 | 11 |
|
|
83
|
+
|
|
84
|
+
**Total: 2,278 articles, 1,145 definitions across 37 regulations**
|
|
31
85
|
|
|
32
86
|
Plus:
|
|
33
|
-
- **
|
|
34
|
-
-
|
|
87
|
+
- **686 security framework control mappings**:
|
|
88
|
+
- 313 ISO 27001:2022 controls mapped to regulation requirements
|
|
89
|
+
- 373 NIST CSF 2.0 controls mapped to regulation requirements
|
|
90
|
+
- **305 sector applicability rules** for determining which regulations apply
|
|
35
91
|
|
|
36
92
|
---
|
|
37
93
|
|
|
@@ -112,7 +168,7 @@ List available regulations or show detailed structure.
|
|
|
112
168
|
|
|
113
169
|
```
|
|
114
170
|
"List all regulations"
|
|
115
|
-
→ Returns overview of all
|
|
171
|
+
→ Returns overview of all 9 regulations with article counts
|
|
116
172
|
```
|
|
117
173
|
|
|
118
174
|
### `get_definitions`
|
|
@@ -141,11 +197,14 @@ Determine if a regulation applies to an entity type.
|
|
|
141
197
|
```
|
|
142
198
|
|
|
143
199
|
### `map_controls`
|
|
144
|
-
Map
|
|
200
|
+
Map security framework controls to regulation requirements. Supports ISO 27001:2022 and NIST CSF.
|
|
145
201
|
|
|
146
202
|
```
|
|
147
|
-
"Which regulations require access control (A.5.15)?"
|
|
203
|
+
"Which regulations require access control (ISO 27001 A.5.15)?"
|
|
148
204
|
→ Returns mappings to GDPR Art 32, DORA Art 9, NIS2 Art 21
|
|
205
|
+
|
|
206
|
+
"Map NIST CSF incident response controls to EU regulations"
|
|
207
|
+
→ Returns RS.MA-01 mappings to GDPR Art 33-34, NIS2 Art 23, DORA Art 17-19
|
|
149
208
|
```
|
|
150
209
|
|
|
151
210
|
---
|
|
@@ -160,6 +219,18 @@ Once connected, just ask naturally:
|
|
|
160
219
|
- *"Does the EU AI Act apply to my recruitment screening tool?"*
|
|
161
220
|
- *"What are the essential cybersecurity requirements under the Cyber Resilience Act?"*
|
|
162
221
|
- *"Which regulations apply to a healthcare organization in Germany?"*
|
|
222
|
+
- *"What threats must be mitigated under UN R155 Annex 5?"*
|
|
223
|
+
- *"What is a Cybersecurity Management System (CSMS) under R155?"*
|
|
224
|
+
- *"What are the requirements for OTA software updates under R156?"*
|
|
225
|
+
- *"What is RXSWIN and how is it used in R156?"*
|
|
226
|
+
- *"What is an EU Digital Identity Wallet under eIDAS 2.0?"*
|
|
227
|
+
- *"What are the trust service provider requirements in eIDAS?"*
|
|
228
|
+
- *"What are my data access rights under the Data Act?"*
|
|
229
|
+
- *"How do cloud switching requirements work in the Data Act?"*
|
|
230
|
+
- *"What are the notice-and-action requirements under the DSA?"*
|
|
231
|
+
- *"What obligations do Very Large Online Platforms have under DSA?"*
|
|
232
|
+
- *"What is a gatekeeper under the Digital Markets Act?"*
|
|
233
|
+
- *"What interoperability requirements does the DMA impose on messaging apps?"*
|
|
163
234
|
|
|
164
235
|
---
|
|
165
236
|
|
|
@@ -168,6 +239,7 @@ Once connected, just ask naturally:
|
|
|
168
239
|
All content is sourced from official public sources:
|
|
169
240
|
|
|
170
241
|
- **[EUR-Lex](https://eur-lex.europa.eu/)** — Official EU law portal (CC BY 4.0)
|
|
242
|
+
- **[UNECE](https://unece.org/)** — UN Economic Commission for Europe (UN R155, R156)
|
|
171
243
|
- **[ENISA](https://enisa.europa.eu/)** — EU Agency for Cybersecurity guidance
|
|
172
244
|
|
|
173
245
|
No copyrighted ISO standards are included. For ISO 27001 full text, you'll need to purchase licenses from ISO.
|
|
@@ -194,19 +266,48 @@ npm run dev
|
|
|
194
266
|
npm run build
|
|
195
267
|
```
|
|
196
268
|
|
|
197
|
-
###
|
|
269
|
+
### Adding New Regulations
|
|
270
|
+
|
|
271
|
+
Adding a regulation is a single command — it's automatically monitored for updates:
|
|
198
272
|
|
|
199
273
|
```bash
|
|
200
|
-
# Ingest
|
|
201
|
-
|
|
274
|
+
# Ingest an EU regulation from EUR-Lex
|
|
275
|
+
npx tsx scripts/ingest-eurlex.ts 32024R1183 data/seed/eidas2.json
|
|
276
|
+
npm run build:db
|
|
202
277
|
|
|
203
|
-
#
|
|
204
|
-
|
|
278
|
+
# That's it. The regulation is now:
|
|
279
|
+
# - In the database
|
|
280
|
+
# - Automatically monitored by daily EUR-Lex checker
|
|
281
|
+
# - Included in auto-update workflow
|
|
282
|
+
```
|
|
205
283
|
|
|
206
|
-
|
|
207
|
-
|
|
284
|
+
### Freshness Monitoring
|
|
285
|
+
|
|
286
|
+
A GitHub Actions workflow runs daily at 6 AM UTC to ensure regulations stay current:
|
|
287
|
+
|
|
288
|
+
- **Checks EUR-Lex RSS feeds** for recent legislative changes
|
|
289
|
+
- **Compares versions** against local database
|
|
290
|
+
- **Creates GitHub issues** when updates are available
|
|
291
|
+
- **Auto-closes issues** when regulations are current
|
|
292
|
+
|
|
293
|
+
To manually check for updates:
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
npm run check-updates
|
|
208
297
|
```
|
|
209
298
|
|
|
299
|
+
To trigger auto-update (re-ingest all + publish):
|
|
300
|
+
1. Go to Actions → Daily EUR-Lex Update Check
|
|
301
|
+
2. Run workflow with `auto_update: true`
|
|
302
|
+
|
|
303
|
+
---
|
|
304
|
+
|
|
305
|
+
## Disclaimer
|
|
306
|
+
|
|
307
|
+
**This tool is not legal advice.** Regulation text is sourced verbatim from EUR-Lex and UNECE. Control mappings, applicability rules, and cross-references are interpretive aids — useful for compliance research, but not a substitute for qualified legal counsel.
|
|
308
|
+
|
|
309
|
+
Always verify against official sources for compliance decisions.
|
|
310
|
+
|
|
210
311
|
---
|
|
211
312
|
|
|
212
313
|
## About Ansvar Systems
|
|
@@ -217,11 +318,43 @@ We build AI-accelerated threat modeling tools for automotive and financial servi
|
|
|
217
318
|
|
|
218
319
|
---
|
|
219
320
|
|
|
220
|
-
##
|
|
321
|
+
## Troubleshooting
|
|
221
322
|
|
|
222
|
-
|
|
323
|
+
### Database Not Found Error
|
|
324
|
+
|
|
325
|
+
If you see `Failed to open database at .../data/regulations.db`:
|
|
326
|
+
|
|
327
|
+
The database is built automatically during installation via the `postinstall` script. If it's missing:
|
|
328
|
+
|
|
329
|
+
```bash
|
|
330
|
+
# Rebuild the database
|
|
331
|
+
npm run build:db
|
|
332
|
+
|
|
333
|
+
# Or if installed globally/via npx, reinstall
|
|
334
|
+
npm install -g @ansvar/eu-regulations-mcp --force
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
The database contains all 37 regulations (12MB). It's gitignored in the source repo but built during:
|
|
338
|
+
- `npm install` (postinstall hook)
|
|
339
|
+
- `npm publish` (prepublishOnly hook)
|
|
340
|
+
|
|
341
|
+
### MCP Server Not Starting
|
|
342
|
+
|
|
343
|
+
Check that you're using Node.js 18 or higher:
|
|
344
|
+
|
|
345
|
+
```bash
|
|
346
|
+
node --version # Should be v18.0.0 or higher
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
### Slow First Query
|
|
350
|
+
|
|
351
|
+
The first query after startup may be slow (~1-2s) as SQLite loads the database into memory. Subsequent queries are fast (<50ms).
|
|
352
|
+
|
|
353
|
+
---
|
|
354
|
+
|
|
355
|
+
## License
|
|
223
356
|
|
|
224
|
-
|
|
357
|
+
Apache License 2.0. See [LICENSE](./LICENSE) for details.
|
|
225
358
|
|
|
226
359
|
---
|
|
227
360
|
|