PiQrypt MCP Server

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.

Category
Visit Server

README

PiQrypt MCP Server

Cryptographic Audit Trail for AI Agents via Model Context Protocol

MCP License Python Node


๐Ÿš€ 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+)

  1. Install n8n MCP integration
  2. Add PiQrypt MCP server to configuration
  3. 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 identifier
  • payload (object, required): Decision data
  • previous_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 export
  • certified (boolean): Request PiQrypt certification
  • output_format (string): json or pqz

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 type
  • from_timestamp (number, optional): Start time
  • to_timestamp (number, optional): End time
  • limit (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

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured