Enables cryptographic audit trails for n8n automation workflows, allowing AI agents to sign decisions with cryptographic proof, verify event chain integrity, and export compliance-ready audit logs for SEC, FINRA, GDPR, or HIPAA requirements.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PiQrypt MCP ServerSign my latest decision with a cryptographic proof for the audit trail"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PiQrypt MCP Server
Cryptographic Audit Trail for AI Agents via Model Context Protocol
๐ What is PiQrypt MCP?
PiQrypt MCP Server provides Model Context Protocol access to PiQrypt โ the post-quantum cryptographic audit trail for AI agents.
Use cases:
๐ค AI Agents: Sign every decision with cryptographic proof
๐ n8n Workflows: Add audit trail to automation workflows
๐ฆ Trading Bots: SEC/FINRA compliance for automated trading
๐ฅ HR Automation: GDPR-compliant AI hiring decisions
๐ฅ Healthcare AI: HIPAA audit trail for medical decisions
๐ฆ Installation
Prerequisites
Node.js 18+
Python 3.8+
PiQrypt Core (
pip install piqrypt)
Install MCP Server
npm install @piqrypt/mcp-serverOr build from source:
git clone https://github.com/piqrypt/piqrypt-mcp-server
cd piqrypt-mcp-server
npm install
npm run buildโ๏ธ Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"piqrypt": {
"command": "node",
"args": ["/path/to/piqrypt-mcp-server/dist/index.js"]
}
}
}n8n (v1.88+)
Install n8n MCP integration
Add PiQrypt MCP server to configuration
Use in workflows via MCP node
๐ ๏ธ Available Tools
1. piqrypt_stamp_event
Sign an AI decision with cryptographic proof.
Parameters:
agent_id(string, required): Agent identifierpayload(object, required): Decision dataprevious_hash(string, optional): Previous event hash for chaining
Example:
const event = await mcp.call('piqrypt_stamp_event', {
agent_id: 'trading_bot_v1',
payload: {
action: 'buy',
symbol: 'AAPL',
quantity: 100,
price: 150.25
}
});Returns:
{
"version": "AISS-1.0",
"agent_id": "trading_bot_v1",
"timestamp": 1739382400,
"nonce": "uuid-...",
"payload": { ... },
"previous_hash": "sha256:...",
"signature": "base64:..."
}2. piqrypt_verify_chain
Verify integrity of event chain.
Parameters:
events(array, required): Events to verify
Example:
const result = await mcp.call('piqrypt_verify_chain', {
events: [event1, event2, event3]
});Returns:
{
"valid": true,
"events_count": 3,
"chain_hash": "sha256:...",
"errors": []
}3. piqrypt_export_audit
Export audit trail for compliance.
Parameters:
agent_id(string, required): Agent to exportcertified(boolean): Request PiQrypt certificationoutput_format(string):jsonorpqz
Example:
const audit = await mcp.call('piqrypt_export_audit', {
agent_id: 'trading_bot_v1',
certified: true,
output_format: 'json'
});4. piqrypt_search_events
Fast search via SQLite index.
Parameters:
event_type(string, optional): Filter by typefrom_timestamp(number, optional): Start timeto_timestamp(number, optional): End timelimit(number): Max results (default: 100)
Example:
const trades = await mcp.call('piqrypt_search_events', {
event_type: 'trade_executed',
from_timestamp: 1739300000,
limit: 50
});๐ Security Model
Process Isolation
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Client (Claude, n8n, etc.) โ
โ โ 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 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโGuarantees
โ
Private keys never exposed to MCP layer
โ
All crypto in Python (Ed25519, Dilithium3)
โ
Same security as CLI (process isolation)
โ
RFC AISS-1.1 compliant (identical output)
โ
Input validation before subprocess call
๐ Examples
Trading Bot (n8n)
[Webhook: price alert]
โ
[AI Decision: buy/sell?]
โ
[PiQrypt MCP: stamp decision] โ Audit trail
โ
[Execute trade API]
โ
[Database: store proof]HR Automation
[Upload CV]
โ
[Claude AI: evaluate candidate]
โ
[PiQrypt MCP: stamp evaluation] โ GDPR compliance
โ
[Email HR team]๐งช Testing
# 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๐ Documentation
๐ค Contributing
We welcome contributions! See CONTRIBUTING.md.
๐ License
MIT License - see LICENSE
๐ Links
PiQrypt Core: https://github.com/piqrypt/piqrypt
MCP Protocol: https://modelcontextprotocol.io
n8n: https://n8n.io
Documentation: https://docs.piqrypt.com
Built with โค๏ธ by PiQrypt Inc.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.