PiQrypt MCP Server
Enables AI agents to sign decisions with post-quantum cryptographic proofs and maintain secure audit trails for compliance. It provides tools for stamping events, verifying chain integrity, and exporting audit data across industries like finance and healthcare.
README
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-server
Or 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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.