You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MCP Gateway is an advanced intermediary solution for Model Context Protocol (MCP) servers that centralizes and enhances your AI infrastructure.
6
21
7
22
MCP Gateway acts as an intermediary between LLMs and other MCP servers. It:
8
23
9
-
1. Reads server configurations from a `mcp.json` file located in your root directory.
10
-
2. Manages the lifecycle of configured MCP servers.
11
-
3. Intercepts requests and responses to sanitize sensitive information.
12
-
4. Provides a unified interface for discovering and interacting with all proxied MCPs.
24
+
1. 📄 Reads server configurations from a `mcp.json` file located in your root directory.
25
+
2. ⚙️ Manages the lifecycle of configured MCP servers.
26
+
3. 🛡️ Intercepts requests and responses to sanitize sensitive information.
27
+
4. 🔗 Provides a unified interface for discovering and interacting with all proxied MCPs.
28
+
5. 🔒 **Security Scanner** - Analyzes server reputation and security risks before loading MCP servers.
13
29
14
30
## Installation
15
31
@@ -293,6 +309,7 @@ The Lasso guardrail checks content through Lasso's API for security violations b
293
309
294
310
Read more on our website 👉 [Lasso Security](https://www.lasso.security/).
295
311
312
+
296
313
## Tracing
297
314
298
315
### Xetrack
@@ -398,6 +415,82 @@ D SELECT server_name,capability_name,path,content_text FROM db.events LIMIT 1;
398
415
399
416
Of course you can use another MCP server to query the sqlite database 😊
400
417
418
+
# Scanner
419
+
420
+
The Security Scanner analyzes MCP servers for potential security risks before loading, providing an additional layer of protection through reputation analysis and tool description scanning.
421
+
422
+
```bash
423
+
mcp-gateway --scan -p basic
424
+
```
425
+
426
+
**Features:**
427
+
- 🔍 **Reputation Analysis** - Evaluates server reputation using marketplace (Smithery, NPM) and GitHub data
- ⚡ **Automatic Blocking** - Blocks risky MCPs based on reputation scores (threshold: 30) and security analysis
430
+
- 📝 **Configuration Updates** - Automatically updates your MCP configuration file with scan results
431
+
432
+
## Quickstart
433
+
Initial configuration:
434
+
```json
435
+
{
436
+
"mcpServers": {
437
+
"mcp-gateway": {
438
+
"command": "mcp-gateway",
439
+
"args": [
440
+
"--mcp-json-path",
441
+
"~/.cursor/mcp.json",
442
+
"--scan"
443
+
],
444
+
"servers": {
445
+
"filesystem": {
446
+
"command": "npx",
447
+
"args": [
448
+
"-y",
449
+
"@modelcontextprotocol/server-filesystem",
450
+
"."
451
+
]
452
+
}
453
+
}
454
+
}
455
+
}
456
+
}
457
+
```
458
+
After the first run, the scanner will analyze all configured MCP servers and add a `blocked` status to your configuration:
459
+
```json
460
+
{
461
+
"mcpServers": {
462
+
"mcp-gateway": {
463
+
"command": "mcp-gateway",
464
+
"args": [
465
+
"--mcp-json-path",
466
+
"~/.cursor/mcp.json",
467
+
"--scan"
468
+
],
469
+
"servers": {
470
+
"filesystem": {
471
+
"command": "npx",
472
+
"args": [
473
+
"-y",
474
+
"@modelcontextprotocol/server-filesystem",
475
+
"."
476
+
],
477
+
"blocked": "passed"
478
+
}
479
+
}
480
+
}
481
+
}
482
+
}
483
+
```
484
+
**Status Values:**
485
+
- `"passed"` - Server passed all security checks and is safe to use
486
+
- `"blocked"` - Server failed security checks and will be blocked from loading
487
+
- `"skipped"` - Server scanning was skipped (manual override)
488
+
- `null` - Server not yet scanned or previously blocked server now considered safe
489
+
490
+
>**Note:** You can manually change a blocked server to `"skipped"`if you're confident it's safe.
491
+
492
+
493
+
401
494
## How It Works
402
495
Your agent interacts directly with our MCP Gateway, which functions as a central router and management system. Each underlying MCP is individually wrapped and managed.
403
496
@@ -413,6 +506,9 @@ Key Features
413
506
* Includes intelligent risk assessment with MCP risk scoring.
414
507
* Delivers real-time status monitoring and performance metrics.
415
508
509
+
**Security Scanner**
510
+
* Analyzes MCP server reputation and tool descriptions for security risks before loading.
511
+
416
512
**Advanced Tracking**
417
513
* Maintains detailed logs of all requests and responses for each guardrail.
418
514
* Offers cost evaluation tools for MCPs requiring paid tokens.
0 commit comments