-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmcp.html
More file actions
958 lines (858 loc) · 33.6 KB
/
Copy pathmcp.html
File metadata and controls
958 lines (858 loc) · 33.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OpenCrawling® Secure MCP Server - Zero-Trust Context Retrieval for AI Agents</title>
<!-- SEO Meta Tags -->
<meta name="description" content="Discover the OpenCrawling Secure MCP Server. Built on Spring AI and the Model Context Protocol (MCP) to provide Zero-Trust, identity-aware knowledge retrieval with ACL filtering for enterprise AI agents.">
<meta name="keywords" content="Model Context Protocol, MCP Server, Spring AI, Zero-Trust AI, Enterprise RAG, Access Control List, ACL filtering, Vector Store Security, OpenCrawling">
<meta name="author" content="OpenCrawling Core Team">
<link rel="canonical" href="https://opencrawling.org/mcp.html">
<!-- JSON-LD Structured Data for SEO -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "TechArticle",
"headline": "OpenCrawling Secure MCP Server - Zero-Trust Context Retrieval for AI Agents",
"description": "Discover the OpenCrawling Secure MCP Server built on Spring AI and Model Context Protocol (MCP) to provide Zero-Trust, identity-aware knowledge retrieval.",
"url": "https://opencrawling.org/mcp.html",
"author": {
"@type": "Organization",
"name": "OpenCrawling"
},
"publisher": {
"@type": "Organization",
"name": "OpenCrawling",
"logo": "https://opencrawling.org/assets/logo-without-text-200px.png"
}
}
</script>
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://opencrawling.org/mcp.html">
<meta property="og:title" content="OpenCrawling® Secure MCP Server - Zero-Trust Context Retrieval">
<meta property="og:description" content="Provide secure, ACL-filtered enterprise data retrieval to LLM agents using Spring AI and the Model Context Protocol (MCP).">
<meta property="og:image" content="https://opencrawling.org/assets/logo-without-text-200px.png">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://opencrawling.org/mcp.html">
<meta property="twitter:title" content="OpenCrawling® Secure MCP Server - Zero-Trust Context Retrieval">
<meta property="twitter:description" content="Provide secure, ACL-filtered enterprise data retrieval to LLM agents using Spring AI and the Model Context Protocol (MCP).">
<meta property="twitter:image" content="https://opencrawling.org/assets/logo-without-text-200px.png">
<!-- SVG Favicon -->
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E">
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap" rel="stylesheet">
<!-- CSS Stylesheets -->
<link rel="stylesheet" href="css/styles.css">
<!-- Mermaid.js for Architecture Diagram -->
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
mermaid.initialize({
startOnLoad: true,
theme: 'dark',
themeVariables: {
primaryColor: '#8B5CF6',
primaryTextColor: '#F1F5F9',
lineColor: '#06B6D4',
nodeBorder: '#8B5CF6',
mainBkg: '#0F172A',
clusterBkg: '#07090E'
}
});
});
</script>
<style>
.mcp-wrapper {
max-width: var(--container-width);
margin: 0 auto;
padding: calc(var(--header-height) + 3rem) 2rem 6rem 2rem;
}
.mcp-hero {
text-align: center;
margin-bottom: 5rem;
position: relative;
}
.mcp-hero-badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.4rem 1rem;
border-radius: 30px;
background: rgba(139, 92, 246, 0.12);
border: 1px solid rgba(139, 92, 246, 0.3);
color: var(--accent-color);
font-size: 0.85rem;
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
margin-bottom: 1.5rem;
}
.mcp-hero h1 {
font-size: clamp(2.5rem, 1.5rem + 4vw, 4.2rem);
font-family: var(--font-heading);
font-weight: 800;
margin-bottom: 1.5rem;
letter-spacing: -0.03em;
line-height: 1.15;
background: linear-gradient(135deg, var(--text-color) 20%, var(--accent-color) 70%, var(--cyan-color) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.mcp-hero p {
font-size: 1.25rem;
color: var(--text-muted);
max-width: 820px;
margin: 0 auto 2.5rem auto;
line-height: 1.7;
}
.mcp-hero-actions {
display: flex;
justify-content: center;
gap: 1rem;
flex-wrap: wrap;
}
.btn-primary {
display: inline-flex;
align-items: center;
gap: 0.6rem;
padding: 0.85rem 1.8rem;
border-radius: 12px;
background: linear-gradient(135deg, var(--accent-color), #6D28D9);
color: #FFFFFF;
font-weight: 600;
text-decoration: none;
box-shadow: 0 4px 20px var(--accent-glow);
transition: all 0.25s ease;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 25px var(--accent-glow);
color: #FFFFFF;
}
.btn-secondary {
display: inline-flex;
align-items: center;
gap: 0.6rem;
padding: 0.85rem 1.8rem;
border-radius: 12px;
background: rgba(15, 23, 42, 0.6);
border: 1px solid var(--card-border);
color: var(--text-color);
font-weight: 600;
text-decoration: none;
transition: all 0.25s ease;
}
.btn-secondary:hover {
border-color: var(--accent-color);
background: rgba(139, 92, 246, 0.1);
color: var(--accent-color);
}
/* Feature Grid */
.mcp-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 2rem;
margin-bottom: 5rem;
}
.mcp-card {
background: rgba(15, 23, 42, 0.5);
border: 1px solid var(--card-border);
border-radius: 16px;
padding: 2.2rem;
transition: all 0.3s ease;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
.mcp-card:hover {
border-color: rgba(139, 92, 246, 0.4);
transform: translateY(-4px);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.mcp-card-icon {
width: 48px;
height: 48px;
border-radius: 12px;
background: rgba(139, 92, 246, 0.12);
border: 1px solid rgba(139, 92, 246, 0.25);
display: flex;
align-items: center;
justify-content: center;
color: var(--accent-color);
margin-bottom: 1.5rem;
}
.mcp-card h3 {
font-size: 1.35rem;
font-family: var(--font-heading);
margin-bottom: 0.8rem;
color: var(--text-color);
}
.mcp-card p {
font-size: 0.98rem;
color: var(--text-muted);
line-height: 1.6;
}
/* Architecture Diagram Section */
.mcp-section {
margin-bottom: 5rem;
}
.mcp-section-title {
font-size: 2rem;
font-family: var(--font-heading);
font-weight: 700;
margin-bottom: 1rem;
color: var(--text-color);
text-align: center;
}
.mcp-section-subtitle {
font-size: 1.1rem;
color: var(--text-muted);
text-align: center;
max-width: 700px;
margin: 0 auto 2.5rem auto;
}
.mermaid-box {
background: rgba(7, 9, 14, 0.6);
border: 1px solid var(--card-border);
border-radius: 16px;
padding: 2.5rem 1rem;
display: flex;
justify-content: center;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
/* Tool Reference Cards */
.tools-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
margin-bottom: 5rem;
}
.tool-spec-card {
background: rgba(15, 23, 42, 0.5);
border: 1px solid var(--card-border);
border-radius: 16px;
padding: 2rem;
backdrop-filter: blur(12px);
}
.tool-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
margin-bottom: 1.2rem;
border-bottom: 1px solid var(--card-border);
padding-bottom: 1rem;
}
.tool-name-tag {
display: flex;
align-items: center;
gap: 0.75rem;
}
.tool-name {
font-family: var(--font-mono);
font-size: 1.25rem;
font-weight: 700;
color: var(--cyan-color);
}
.tool-badge {
font-size: 0.75rem;
font-weight: 600;
padding: 0.25rem 0.6rem;
border-radius: 6px;
background: rgba(6, 182, 212, 0.15);
color: var(--cyan-color);
border: 1px solid rgba(6, 182, 212, 0.3);
text-transform: uppercase;
}
.params-table {
width: 100%;
border-collapse: collapse;
margin-top: 1rem;
font-size: 0.92rem;
}
.params-table th, .params-table td {
padding: 0.75rem 1rem;
text-align: left;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.params-table th {
color: var(--text-color);
font-weight: 600;
background: rgba(255, 255, 255, 0.02);
}
.params-table td {
color: var(--text-muted);
}
.param-name {
font-family: var(--font-mono);
color: var(--accent-color);
font-weight: 500;
}
.req-badge {
font-size: 0.7rem;
padding: 0.15rem 0.4rem;
border-radius: 4px;
font-weight: 600;
}
.req-yes {
background: rgba(239, 68, 68, 0.15);
color: #F87171;
}
.req-no {
background: rgba(156, 163, 175, 0.15);
color: #9CA3AF;
}
/* Client Setup Tabs */
.setup-box {
background: rgba(15, 23, 42, 0.5);
border: 1px solid var(--card-border);
border-radius: 16px;
padding: 2rem;
}
.setup-tabs {
display: flex;
gap: 0.75rem;
border-bottom: 1px solid var(--card-border);
padding-bottom: 1rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}
.setup-tab-btn {
padding: 0.5rem 1.2rem;
border-radius: 8px;
background: transparent;
border: 1px solid transparent;
color: var(--text-muted);
cursor: pointer;
font-size: 0.95rem;
font-weight: 600;
transition: all 0.2s ease;
}
.setup-tab-btn:hover {
color: var(--text-color);
}
.setup-tab-btn.active {
background: rgba(139, 92, 246, 0.15);
border-color: rgba(139, 92, 246, 0.4);
color: var(--accent-color);
}
.setup-content {
display: none;
}
.setup-content.active {
display: block;
}
.code-block-wrapper {
position: relative;
margin-top: 1rem;
}
.code-block-wrapper pre {
background: rgba(7, 9, 14, 0.8);
border: 1px solid var(--card-border);
border-radius: 12px;
padding: 1.5rem;
overflow-x: auto;
font-family: var(--font-mono);
font-size: 0.9rem;
color: #E2E8F0;
}
.copy-code-btn {
position: absolute;
top: 0.75rem;
right: 0.75rem;
padding: 0.4rem 0.8rem;
border-radius: 6px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.15);
color: var(--text-muted);
cursor: pointer;
font-size: 0.8rem;
transition: all 0.2s ease;
}
.copy-code-btn:hover {
background: rgba(255, 255, 255, 0.15);
color: var(--text-color);
}
@media (max-width: 768px) {
.mcp-wrapper {
padding-top: calc(var(--header-height) + 1.5rem);
}
}
</style>
</head>
<body>
<!-- Background Decorative Gradients -->
<div class="glow-bg-grid" aria-hidden="true"></div>
<div class="glow-blob glow-blob-1" aria-hidden="true"></div>
<div class="glow-blob glow-blob-2" aria-hidden="true"></div>
<!-- Header / Navigation -->
<header class="site-header">
<div class="header-container">
<a href="index.html" class="brand" id="nav-brand">
<img src="assets/logo-without-text-200px.png" alt="OpenCrawling Logo" class="brand-logo">
<span class="brand-name">OpenCrawling</span>
</a>
<nav class="main-nav" aria-label="Main Navigation">
<ul>
<li><a href="index.html#features">Features</a></li>
<li><a href="sdk.html">Java SDK</a></li>
<li><a href="index.html#standard">Open Standard</a></li>
<li><a href="index.html#getting-started">Quick Start</a></li>
<li><a href="mcp.html" class="active">MCP Server</a></li>
<li><a href="observability.html">Observability</a></li>
<li><a href="comparison.html">Compare</a></li>
<li><a href="team.html">Team</a></li>
</ul>
</nav>
<div class="header-actions">
<button id="theme-toggle" class="theme-toggle-btn" aria-label="Toggle theme">
<svg class="sun-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"/></svg>
<svg class="moon-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"/></svg>
</button>
<a href="https://github.com/OpenCrawling/opencrawling" target="_blank" rel="noopener noreferrer" class="github-btn" id="github-link">
<svg class="github-icon" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" width="18" height="18"><path d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.35 3.12.88.01.64.01 1.25.01 1.42 0 .21-.15.47-.55.38A8.006 8.006 0 0 1 0 8c0-4.42 3.58-8 8-8z"/></svg>
<span>Star</span>
</a>
<button id="mobile-menu-toggle" class="mobile-menu-toggle" aria-label="Toggle Navigation" aria-expanded="false">
<span></span>
<span></span>
<span></span>
</button>
</div>
</div>
</header>
<!-- Main Content Wrapper -->
<main class="mcp-wrapper">
<!-- Hero Section -->
<section class="mcp-hero">
<div class="mcp-hero-badge">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
Zero-Trust Context Retrieval
</div>
<h1>Secure Model Context Protocol (MCP) Server</h1>
<p>Give AI models and agents direct access to enterprise knowledge databases while enforcing strict, server-side Access Control Lists (ACLs). Prevent prompt injection leaks and unauthorized document retrieval.</p>
<div class="mcp-hero-actions">
<a href="https://github.com/OpenCrawling/opencrawling/wiki/Model-Context-Protocol" target="_blank" rel="noopener noreferrer" class="btn-primary">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/></svg>
View Full Wiki Documentation
</a>
<a href="#mcp-architecture" class="btn-secondary">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="12 2 2 7 12 12 22 7 12 2"/><polyline points="2 17 12 22 22 17"/><polyline points="2 12 12 17 22 12"/></svg>
Explore Architecture
</a>
</div>
</section>
<!-- Key Capabilities Grid -->
<div class="mcp-grid">
<div class="mcp-card">
<div class="mcp-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
</div>
<h3>Server-Side Security Filtering</h3>
<p>Dynamic pre-filtering inside database queries (PostgreSQL/pgvector) guarantees LLMs never receive raw data matching unauthorized ACLs, eliminating context boundary bypasses.</p>
</div>
<div class="mcp-card">
<div class="mcp-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="8.5" cy="7" r="4"/><polyline points="17 11 19 13 23 9"/></svg>
</div>
<h3>Identity & Role Propagation</h3>
<p>Accepts user principal identities (email, username) and LDAP/Active Directory group roles at query time. Seamlessly maps caller tokens to repository Security SIDs.</p>
</div>
<div class="mcp-card">
<div class="mcp-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
</div>
<h3>Spring AI 2.0 Native</h3>
<p>Built directly into the <code>oc-runtime</code> module using Spring AI standard `@McpTool` annotations and WebMVC/SSE transport protocols for seamless Java ecosystem integration.</p>
</div>
</div>
<!-- Architecture Section -->
<section id="mcp-architecture" class="mcp-section">
<h2 class="mcp-section-title">Zero-Trust Retrieval Pipeline</h2>
<p class="mcp-section-subtitle">How OpenCrawling intercepts AI client requests to enforce document permissions before vector store search execution.</p>
<div class="mermaid-box">
<div class="mermaid">
graph TD
subgraph AI Client Layer
LLM[LLM Agent / MCP Client]
end
subgraph OpenCrawling Runtime
MCP[McpVectorServer]
Auth[Authority Service]
VecStore[PgVectorStore / Milvus]
end
subgraph Storage Boundary
DB[(Vector Store Database)]
end
LLM -->|1. secureVectorSearch query, principal, roles| MCP
MCP -->|2. Resolve identity & active tokens| Auth
MCP -->|3. Build dynamic security FilterExpression| VecStore
VecStore -->|4. SQL query with WHERE acl IN user_rights| DB
DB -->|5. Permitted vector chunk candidates| VecStore
VecStore -->|6. Filtered results with metadata| MCP
MCP -->|7. Sanitized JSON context response| LLM
</div>
</div>
</section>
<!-- MCP Tools Specification Reference -->
<section class="mcp-section">
<h2 class="mcp-section-title">Exposed MCP Tools Specification</h2>
<p class="mcp-section-subtitle">The standard tools made dynamically available to connected LLMs and AI agent frameworks.</p>
<div class="tools-grid">
<!-- Tool 1: secureVectorSearch -->
<div class="tool-spec-card">
<div class="tool-header">
<div class="tool-name-tag">
<span class="tool-name">secureVectorSearch</span>
<span class="tool-badge">Core Search Tool</span>
</div>
</div>
<p style="color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem;">Performs semantic vector similarity search on indexed enterprise documents, pre-filtering results on the server using the caller's identity and group permissions.</p>
<table class="params-table">
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="param-name">query</td>
<td>String</td>
<td><span class="req-badge req-yes">Yes</span></td>
<td>Natural language search phrase or keywords.</td>
</tr>
<tr>
<td class="param-name">userPrincipal</td>
<td>String</td>
<td><span class="req-badge req-yes">Yes</span></td>
<td>User email or principal identity performing the query.</td>
</tr>
<tr>
<td class="param-name">userRoles</td>
<td>String</td>
<td><span class="req-badge req-no">Optional</span></td>
<td>Comma-separated roles/groups (e.g. <code>finance,engineering</code>).</td>
</tr>
<tr>
<td class="param-name">maxResults</td>
<td>Integer</td>
<td><span class="req-badge req-no">Optional</span></td>
<td>Maximum top-K results to return (default: 5).</td>
</tr>
<tr>
<td class="param-name">minScore</td>
<td>Double</td>
<td><span class="req-badge req-no">Optional</span></td>
<td>Minimum vector similarity threshold (0.0 - 1.0).</td>
</tr>
<tr>
<td class="param-name">dimensions</td>
<td>Integer</td>
<td><span class="req-badge req-no">Optional</span></td>
<td>Target vector dimension store (384, 768, or 1024).</td>
</tr>
</tbody>
</table>
</div>
<!-- Tool 2: getDocumentContent -->
<div class="tool-spec-card">
<div class="tool-header">
<div class="tool-name-tag">
<span class="tool-name">getDocumentContent</span>
<span class="tool-badge">Document Retrieval</span>
</div>
</div>
<p style="color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem;">Retrieves complete document content and metadata for a specific URI, verifying caller authorization prior to payload retrieval.</p>
<table class="params-table">
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="param-name">documentUri</td>
<td>String</td>
<td><span class="req-badge req-yes">Yes</span></td>
<td>Target document URI (e.g. <code>file:///data/reports/q3.pdf</code>).</td>
</tr>
<tr>
<td class="param-name">userPrincipal</td>
<td>String</td>
<td><span class="req-badge req-yes">Yes</span></td>
<td>User principal identity verifying access rights.</td>
</tr>
<tr>
<td class="param-name">userRoles</td>
<td>String</td>
<td><span class="req-badge req-no">Optional</span></td>
<td>Comma-separated group memberships of caller.</td>
</tr>
</tbody>
</table>
</div>
<!-- Tool 3: listAccessibleSources -->
<div class="tool-spec-card">
<div class="tool-header">
<div class="tool-name-tag">
<span class="tool-name">listAccessibleSources</span>
<span class="tool-badge">Discovery</span>
</div>
</div>
<p style="color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem;">Returns a list of all indexed documents and knowledge sources accessible to the specified user identity.</p>
<table class="params-table">
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="param-name">userPrincipal</td>
<td>String</td>
<td><span class="req-badge req-yes">Yes</span></td>
<td>User principal identity for ACL enumeration.</td>
</tr>
<tr>
<td class="param-name">userRoles</td>
<td>String</td>
<td><span class="req-badge req-no">Optional</span></td>
<td>Comma-separated group memberships.</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<!-- Setup & Integration Examples -->
<section class="mcp-section">
<h2 class="mcp-section-title">Client Integration Setup</h2>
<p class="mcp-section-subtitle">Configure your preferred AI environment to talk directly to the OpenCrawling Secure MCP Server.</p>
<div class="setup-box">
<div class="setup-tabs">
<button class="setup-tab-btn active" onclick="switchSetupTab('claude')">Claude Desktop</button>
<button class="setup-tab-btn" onclick="switchSetupTab('cursor')">Cursor IDE</button>
<button class="setup-tab-btn" onclick="switchSetupTab('windsurf')">Windsurf IDE</button>
<button class="setup-tab-btn" onclick="switchSetupTab('continue')">Continue.dev</button>
<button class="setup-tab-btn" onclick="switchSetupTab('antigravity')">Antigravity / agy</button>
<button class="setup-tab-btn" onclick="switchSetupTab('python')">Python MCP SDK</button>
<button class="setup-tab-btn" onclick="switchSetupTab('spring')">Spring AI Client</button>
<button class="setup-tab-btn" onclick="switchSetupTab('curl')">cURL / HTTP</button>
<button class="setup-tab-btn" onclick="switchSetupTab('docker')">Docker Container</button>
</div>
<!-- Claude Desktop Config -->
<div id="tab-claude" class="setup-content active">
<p style="color: var(--text-muted); font-size: 0.95rem;">Add the server entry to your local <code>claude_desktop_config.json</code>:</p>
<div class="code-block-wrapper">
<pre><code>{
"mcpServers": {
"opencrawling-secure-vector-mcp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/client-cli",
"sse",
"http://localhost:8080/mcp/sse"
]
}
}
}</code></pre>
</div>
</div>
<!-- Cursor IDE Config -->
<div id="tab-cursor" class="setup-content">
<p style="color: var(--text-muted); font-size: 0.95rem;">Add entry in workspace or global <code>~/.cursor/mcp.json</code>:</p>
<div class="code-block-wrapper">
<pre><code>{
"mcpServers": {
"opencrawling-secure-vector-mcp": {
"url": "http://localhost:8080/mcp/sse"
}
}
}</code></pre>
</div>
</div>
<!-- Windsurf IDE Config -->
<div id="tab-windsurf" class="setup-content">
<p style="color: var(--text-muted); font-size: 0.95rem;">Add entry to <code>~/.codeium/windsurf/mcp_config.json</code>:</p>
<div class="code-block-wrapper">
<pre><code>{
"mcpServers": {
"opencrawling-mcp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/client-cli",
"sse",
"http://localhost:8080/mcp/sse"
]
}
}
}</code></pre>
</div>
</div>
<!-- Continue.dev Config -->
<div id="tab-continue" class="setup-content">
<p style="color: var(--text-muted); font-size: 0.95rem;">Add SSE server provider in <code>~/.continue/config.json</code>:</p>
<div class="code-block-wrapper">
<pre><code>{
"experimental": {
"modelContextProtocolServers": [
{
"transport": {
"type": "sse",
"url": "http://localhost:8080/mcp/sse"
}
}
]
}
}</code></pre>
</div>
</div>
<!-- Antigravity / agy CLI Config -->
<div id="tab-antigravity" class="setup-content">
<p style="color: var(--text-muted); font-size: 0.95rem;">Register via <code>agy CLI</code> or <code>~/.gemini/antigravity-cli/mcp.json</code>:</p>
<div class="code-block-wrapper">
<pre><code># Command line setup:
agy mcp add opencrawling-mcp http://localhost:8080/mcp/sse --transport sse
# Configuration JSON:
{
"mcpServers": {
"opencrawling-mcp": {
"transport": "sse",
"url": "http://localhost:8080/mcp/sse"
}
}
}</code></pre>
</div>
</div>
<!-- Python MCP SDK -->
<div id="tab-python" class="setup-content">
<p style="color: var(--text-muted); font-size: 0.95rem;">Query the MCP server asynchronously using the Python <code>mcp</code> library:</p>
<div class="code-block-wrapper">
<pre><code>import asyncio
from mcp import ClientSession
from mcp.client.sse import sse_client
async def main():
async with sse_client("http://localhost:8080/mcp/sse") as (read, write):
async with ClientSession(read, write) as session:
await session.initialize()
result = await session.call_tool(
"secureVectorSearch",
arguments={
"query": "Q3 Financial Growth Strategy",
"userPrincipal": "alice@company.com",
"userRoles": "finance,executives",
"maxResults": 5
}
)
print(result.content)
asyncio.run(main())</code></pre>
</div>
</div>
<!-- Spring AI Client -->
<div id="tab-spring" class="setup-content">
<p style="color: var(--text-muted); font-size: 0.95rem;">Consumer settings & Service injection in Spring Boot Java microservices:</p>
<div class="code-block-wrapper">
<pre><code># application.yml:
spring:
ai:
mcp:
client:
enabled: true
name: opencrawling-client
sse:
opencrawling-server:
base-url: http://localhost:8080
sse-endpoint: /mcp/sse
// Java Service Code:
@Autowired
private McpClient mcpClient;
public String searchKnowledge(String userEmail, String query) {
var response = mcpClient.callTool("secureVectorSearch", Map.of(
"query", query,
"userPrincipal", userEmail,
"userRoles", "engineering"
));
return response.content().toString();
}</code></pre>
</div>
</div>
<!-- cURL / HTTP -->
<div id="tab-curl" class="setup-content">
<p style="color: var(--text-muted); font-size: 0.95rem;">Direct manual SSE listening and JSON-RPC execution via cURL:</p>
<div class="code-block-wrapper">
<pre><code># 1. Listen to SSE Stream:
curl -N -H "Accept: text/event-stream" http://localhost:8080/mcp/sse
# 2. Call Tool via JSON-RPC POST (use sessionId from SSE output):
curl -X POST "http://localhost:8080/mcp/message?sessionId=YOUR_SESSION_ID" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "secureVectorSearch",
"arguments": {
"query": "Kubernetes cluster security",
"userPrincipal": "devops@company.com",
"userRoles": "engineering"
}
}
}'</code></pre>
</div>
</div>
<!-- Docker Setup -->
<div id="tab-docker" class="setup-content">
<p style="color: var(--text-muted); font-size: 0.95rem;">Run the dedicated MCP microservice using docker container build:</p>
<div class="code-block-wrapper">
<pre><code>docker build -f docker/Dockerfile.mcp-server -t opencrawling-mcp-server .
docker run -p 8080:8080 \
-e OPENCRAWLING_MCP_SERVER_ENABLED=true \
-e SPRING_AI_MCP_SERVER_ANNOTATION_SCANNER_ENABLED=true \
opencrawling-mcp-server</code></pre>
</div>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="site-footer">
<div class="footer-container">
<div class="footer-brand">
<img src="assets/logo-without-text-200px.png" alt="OpenCrawling Logo" class="footer-logo">
<span>OpenCrawling®</span>
</div>
<div class="footer-info">
<p>Distributed under the <a href="https://github.com/OpenCrawling/opencrawling/blob/main/LICENSE" target="_blank" rel="noopener noreferrer">Apache License 2.0</a>.</p>
<p>© 2026 OpenCrawling Organization. Built with passion for open-source enterprise AI.</p>
<p>OpenCrawling® is a registered trademark of the OpenCrawling Organization. View our <a href="https://github.com/OpenCrawling/opencrawling/blob/main/TRADEMARK.md" target="_blank" rel="noopener noreferrer">Trademark Policy</a>.</p>
</div>
</div>
</footer>
<!-- Scripts -->
<script src="js/main.js"></script>
<script>
function switchSetupTab(tabId) {
document.querySelectorAll('.setup-tab-btn').forEach(btn => btn.classList.remove('active'));
document.querySelectorAll('.setup-content').forEach(c => c.classList.remove('active'));
event.target.classList.add('active');
document.getElementById('tab-' + tabId).classList.add('active');
}
</script>
</body>
</html>