Skip to main content
Glama
PiQrypt

PiQrypt MCP Server

by PiQrypt

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


  • 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.

-
security - not tested
F
license - not found
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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