DM

donnyb369/mcp-spine

分析与监控

本页由 AI 翻译,技术细节请以原文为准。 查看原文

12 stars 7 forks 质量 70 趋势 8MIT

本地首个 MCP 中间软件代理

概览

安全 路由 信使控制 和遵守 ——在你的LLM和工具之间. MCP 磁共振 斯宾克是一个本地第一代理,位于克洛德桌面(或任何MCP客户端)和你的MCP服务器之间. 一个配置,一个入口, 完全控制什么去,什么出来,什么得到记录。 57个工具跨越了5个服务器. 一个代理 零个符号浪费了。 你把克洛德连接到了GitHub,Slack,你的数据库,你的文件系统. 现在你们有40多件工具, 数千个信使在每一个转弯处被烧毁, 没有审计线索,没有费率限制, 也没有任何方法阻止 LLM 读取你的老板的DM。 MCP给予代理权. 斯宾普给你控制。 在Windows,macOS,和Linux上运行. CI测试了所有三个.

概述(AI 翻译)

** 缺少中间软件层 MCP。 ** 安全 路由 信使控制 和遵守 ——在你的LLM和工具之间.

MCP 磁共振 斯宾克是一个本地第一代理,位于克洛德桌面(或任何MCP客户端)和你的MCP服务器之间. 一个配置,一个入口, 完全控制什么去,什么出来,什么得到记录。

57个工具跨越了5个服务器. 一个代理 零个符号浪费了。

□ 问题

你把克洛德连接到了GitHub,Slack,你的数据库,你的文件系统. 现在你们有40多件工具, 数千个信使在每一个转弯处被烧毁, 没有审计线索,没有费率限制, 也没有任何方法阻止 LLM 读取你的老板的DM。 MCP给予代理权. 斯宾普给你控制。

∮它会怎样∮

      • 层 * * * 它能解决什么 |-|-|-. 限制利率、秘密洗涤、道路监禁、HMAC审计线索 语义路由器** 只有相关工具到达LLM——本地嵌入,没有API调用QQ ** 切除器** 61% 通过剥去不必要的切除器实现象征性节约 SHA-256文件针阻止LLM编辑已过时的版本。
  • 每日限额,包括警告/封锁执行和持续追踪 * * *

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MCP Spine

The middleware layer MCP is missing. Security, routing, token control, and compliance — between your LLM and your tools.

MCP Spine is a local-first proxy that sits between Claude Desktop (or any MCP client) and your MCP servers. One config, one entry point, full control over what goes in, what comes out, and what gets logged.

57 tools across 5 servers. One proxy. Zero tokens wasted.

The Problem

You’ve connected Claude to GitHub, Slack, your database, your filesystem. Now you have 40+ tools loaded, thousands of tokens burned on schemas every turn, no audit trail, no rate limits, and no way to stop the LLM from reading your boss’s DMs. MCP gives agents power. Spine gives you control.

What It Does

Layer What it solves
Security Proxy Rate limiting, secret scrubbing, path jails, HMAC audit trail
Semantic Router Only relevant tools reach the LLM — local embeddings, no API calls
Schema Minifier 61% token savings by stripping unnecessary schema fields
State Guard SHA-256 file pins prevent the LLM from editing stale versions
Token Budget Daily limits with warn/block enforcement and persistent tracking
Plugin System Custom middleware hooks — filter, transform, block per tool
HITL Confirmation Destructive tools pause for human approval before executing
Injection Detection Scans tool responses for prompt injection before they reach the LLM
Multi-User Audit Session-tagged audit trail for shared deployments
Tool Caching LRU cache for read-only tools — skip redundant downstream calls
Webhook Alerts Slack/Discord/JSON notifications on security events and budget warnings
Web Dashboard Browser-based monitoring with live stats, latency tracking, request log

Demo

Runs on Windows, macOS, and Linux. CI tested across all three.

Web Dashboard

mcp-spine web --db spine_audit.db

Install

pip install mcp-spine

# With semantic routing (optional)
pip install mcp-spine[ml]

Quick Start

# Interactive setup wizard — detects your servers, asks about features
mcp-spine init

# Or quick default config
mcp-spine init --quick

# Check everything works
mcp-spine doctor --config spine.toml

# Start the proxy
mcp-spine serve --config spine.toml

# Open the web dashboard
mcp-spine web --db spine_audit.db

# Export analytics
mcp-spine export --format csv --hours 24 --output report.csv

Claude Desktop Integration

Replace all your individual MCP server entries with a single Spine entry:

{
  "mcpServers": {
    "spine": {
      "command": "python",
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "spine": { "command": "python", "args": ["-m", "spine.cli", "serve", "--config", "/path/to/spine.toml"], "cwd": "/path/to/mcp-spine" } } }