PiQrypt MCP Server
PiQrypt MCP 服务器
通过模型上下文协议 (Model Context Protocol) 为 AI 智能体提供加密审计追踪
Related MCP server: DCL Evaluator
🚀 什么是 PiQrypt MCP?
PiQrypt MCP 服务器为 PiQrypt 提供模型上下文协议 (Model Context Protocol) 访问权限——这是面向 AI 智能体的后量子密码审计追踪系统。
使用场景:
🤖 AI 智能体:用加密证明签署每一项决策
📊 n8n 工作流:为自动化工作流添加审计追踪
🏦 交易机器人:满足自动化交易的 SEC/FINRA 合规性要求
👥 人力资源自动化:符合 GDPR 的 AI 招聘决策
🏥 医疗保健 AI:医疗决策的 HIPAA 审计追踪
📦 安装
前置要求
1. 安装 piqrypt (必需 — Python 3.8+)
pip install piqryptMCP 服务器将所有加密操作委托给 piqrypt Python 包。如果未安装,服务器在每次调用工具时都会返回明确的错误。
2. 安装 MCP 服务器 (Node.js 18+)
npm install -g @piqrypt/mcp-server通过 npx 安装 (无需全局安装)
npx @piqrypt/mcp-server从源码构建
git clone https://github.com/piqrypt/piqrypt-mcp-server
cd piqrypt-mcp-server
npm install
npm run buildPIQRYPT_PYTHON — 自定义 Python 环境
默认情况下,服务器使用 python3 (Linux/Mac) 或 python (Windows)。如果 piqrypt 安装在虚拟环境中,请将此变量设置为指向正确的解释器:
Windows
set PIQRYPT_PYTHON=C:\path\to\venv\Scripts\python.exeLinux / Mac
export PIQRYPT_PYTHON=/path/to/venv/bin/python要使其持久化,请将其添加到您的 MCP 客户端配置中:
{
"mcpServers": {
"piqrypt": {
"command": "piqrypt-mcp-server",
"args": [],
"env": {
"PIQRYPT_PYTHON": "/path/to/venv/bin/python"
}
}
}
}⚙️ 配置
Claude Desktop
添加到 ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"piqrypt": {
"command": "piqrypt-mcp-server",
"args": []
}
}
}n8n (v1.88+)
安装 n8n MCP 集成
将 PiQrypt MCP 服务器添加到配置中
通过 MCP 节点在工作流中使用
兼容性
MCP 客户端
客户端 | 版本 | 备注 |
任何兼容 MCP 的客户端 | MCP 规范 2024-11+ | stdio 传输 |
n8n | 1.88+ | 通过 MCP 节点 |
Cursor | 任意 | 添加到 mcp 设置 |
VS Code | 任意 | 添加到 mcp 设置 |
Continue | 任意 | 添加到 mcp 设置 |
Windsurf | 任意 | 添加到 mcp 设置 |
自动化平台 (通过 MCP 节点)
平台 | 集成 | 使用场景 |
n8n | MCP 节点 (原生) | 无代码审计追踪 |
Make.com | HTTP 模块 | Webhook 触发的标记 |
Zapier | Webhooks + HTTP | 基础事件记录 |
您可以使用 PiQrypt MCP 审计的内容
每个工具调用都经过相同的 4 个操作 — 标记、验证、导出、搜索。根据您的上下文,其实际意义如下:
自动化交易 / 金融 任何提交订单、重新平衡投资组合或触发交易的智能体都可以在执行前标记每项决策。签署的链条可导出以供 SEC/FINRA 审计,无需任何额外基础设施。
人力资源和招聘自动化 任何评估候选人、对简历评分或筛选申请人的工作流都可以标记每项决策。为 AI 辅助招聘提供符合 GDPR 第 22 条的审计追踪 — 谁在何时决定了什么,以及使用了什么数据(已哈希,从不存储原始数据)。
内容和发布流水线 任何起草、批准或发布内容的智能体都可以标记每个步骤。当多个 AI 智能体协作且您需要证明归属时非常有用 — 哪个智能体编写了什么,顺序如何。
DevOps 和 CI/CD 任何触发部署、合并分支或轮换密钥的智能体都可以标记每个操作。为自主智能体所做的基础设施变更提供防篡改记录。
医疗保健和医疗 AI 任何诊断或分诊智能体都可以标记每项建议。提供符合 HIPAA 的审计追踪,将每个 AI 输出链接到可验证的智能体身份。
所有情况下的通用模式:
[Agent makes decision]
↓
piqrypt_stamp_event ← sign + chain
↓
[Agent executes action]
↓
piqrypt_export_audit ← portable proof, verifiable
without PiQrypt installed🛠️ 可用工具
1. piqrypt_stamp_event
用加密证明签署 AI 决策。
参数:
agent_id(字符串,必需):智能体标识符payload(对象,必需):决策数据previous_hash(字符串,可选):用于链接的前一个事件哈希
示例:
const event = await mcp.call('piqrypt_stamp_event', {
agent_id: 'trading_bot_v1',
payload: {
action: 'buy',
symbol: 'AAPL',
quantity: 100,
price: 150.25
}
});返回:
{
"version": "AISS-1.0",
"agent_id": "trading_bot_v1",
"timestamp": 1739382400,
"nonce": "uuid-...",
"payload": { ... },
"previous_hash": "sha256:...",
"signature": "base64:..."
}2. piqrypt_verify_chain
验证事件链的完整性。
参数:
events(数组,必需):要验证的事件
示例:
const result = await mcp.call('piqrypt_verify_chain', {
events: [event1, event2, event3]
});返回:
{
"valid": true,
"events_count": 3,
"chain_hash": "sha256:...",
"errors": []
}3. piqrypt_export_audit
导出审计追踪以供合规使用。
参数:
agent_id(字符串,必需):要导出的智能体certified(布尔值):请求 PiQrypt 认证output_format(字符串):json或pqz
示例:
const audit = await mcp.call('piqrypt_export_audit', {
agent_id: 'trading_bot_v1',
certified: true,
output_format: 'json'
});4. piqrypt_search_events
通过 SQLite 索引进行快速搜索。
参数:
event_type(字符串,可选):按类型过滤from_timestamp(数字,可选):开始时间to_timestamp(数字,可选):结束时间limit(数字):最大结果数(默认:100)
示例:
const trades = await mcp.call('piqrypt_search_events', {
event_type: 'trade_executed',
from_timestamp: 1739300000,
limit: 50
});📊 Vigil 仪表板 (可选,免费)
每个标记的事件都可以在 Vigil 中查看 — 这是 PiQrypt 的本地监控仪表板。
注意: Vigil 不会由 MCP 服务器自动启动。您必须在打开仪表板之前单独启动它。
piqrypt vigil
# → http://localhost:8421免费层级包括:链健康状况、VRS 风险评分、7 天历史记录、关键警报。升级到 Pro 可获得 90 天历史记录、TrustGate 治理和后量子签名。
🗑️ 管理智能体
智能体在首次标记时自动创建。要查看和删除智能体:
启动 Vigil:
piqrypt vigil进入 All Agents 视图
勾选要删除的智能体 → 点击 ✕ Delete selected
确认 — 当没有智能体剩余时,Vigil 会返回欢迎屏幕
智能体存储在您机器上的
~/.piqrypt/agents/中。删除智能体将永久移除其密钥和事件历史记录。
🔒 安全模型
进程隔离
┌─────────────────────────────────────┐
│ MCP Client (any MCP-compatible client) │
│ ↓ JSON-RPC over stdio │
├─────────────────────────────────────┤
│ MCP Server (TypeScript/Node.js) │ ← No crypto here
│ ↓ subprocess call │
├─────────────────────────────────────┤
│ Python Bridge (bridge.py) │
│ ↓ invokes CLI │
├─────────────────────────────────────┤
│ PiQrypt CLI (Python) │
│ ↓ uses │
├─────────────────────────────────────┤
│ Core Crypto (aiss package) │ ← All crypto here
│ • Ed25519 / Dilithium3 │
│ • RFC 8785 canonical JSON │
│ • Hash chains │
└─────────────────────────────────────┘保证
✅ 私钥从不暴露给 MCP 层 ✅ 所有加密都在 Python 中进行 (Ed25519, Dilithium3) ✅ 与 CLI 相同的安全性 (进程隔离) ✅ 符合 RFC AISS-1.1 标准 (输出一致) ✅ 子进程调用前的输入验证
📚 示例
交易机器人 (n8n)
[Webhook: price alert]
↓
[AI Decision: buy/sell?]
↓
[PiQrypt MCP: stamp decision] ← Audit trail
↓
[Execute trade API]
↓
[Database: store proof]人力资源自动化
[Upload CV]
↓
[AI Agent: evaluate candidate]
↓
[PiQrypt MCP: stamp evaluation] ← GDPR compliance
↓
[Email HR team]🧪 测试
# Build
npm run build
# Test bridge
python3 src/python/bridge.py stamp '{"agent_id":"test","payload":{"action":"test"}}'
# Test MCP server (manual)
node dist/index.js
# Then send MCP request via stdin🔧 故障排除
Error: piqrypt is not installed in this Python environment
MCP 服务器使用的 Python 解释器找不到 piqrypt 包。
修复:
pip install piqrypt如果 piqrypt 安装在虚拟环境中而不是系统 Python 中,请设置 PIQRYPT_PYTHON 指向正确的解释器:
# Linux / Mac
export PIQRYPT_PYTHON=/path/to/venv/bin/python
# Windows
set PIQRYPT_PYTHON=C:\path\to\venv\Scripts\python.exe要验证服务器将使用哪个 Python:
# Linux / Mac
$PIQRYPT_PYTHON -c "import aiss; print('ok')"
# Windows
%PIQRYPT_PYTHON% -c "import aiss; print('ok')"📖 文档
🤝 贡献
我们欢迎贡献!请参阅 CONTRIBUTING.md。
📄 许可证
MCP 服务器 → MIT 许可证 - 请参阅 LICENSE PiQrypt 核心 → 免费层级 + 商业层级
🔗 链接
PiQrypt 核心: https://github.com/piqrypt/piqrypt
MCP 协议: https://modelcontextprotocol.io
n8n: https://n8n.io
由 PiQrypt Inc. 用 ❤️ 构建
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides cryptographic signing and verification for AI decisions to generate verifiable, Ed25519-signed receipts for compliance and auditing. It automatically maps AI actions to regulatory frameworks like HIPAA and SOX with high-performance, sub-3ms signing.4MIT
- FlicenseNot gradedqualityCmaintenanceTamper-evident cryptographic audit trail for LLM outputs. Compliance logging for AI agent decisions.
- AlicenseNot gradedqualityFmaintenanceProvides tamper-proof audit logging for AI agents using SHA-256 hash chains, integrity verification, and compliance reporting for the EU AI Act.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI compliance attestation and verification for EU AI Act, HIPAA, and other regulations, with tools for signing, proving, and anchoring AI decisions to Hedera mainnet.173Inno Setup
Related MCP Connectors
Bitcoin-anchored, tamper-evident audit log for AI agents — record, disclose and verify actions.
Etch is a signed audit chain for AI agent decisions, offline-verifiable against pinned public keys.
Issue signed receipts for AI agent actions; verify any receipt offline - free, no account.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/PiQrypt/piqrypt-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server