Skip to main content
Glama
PiQrypt

PiQrypt MCP Server

by PiQrypt

PiQrypt MCP Server

Криптографический журнал аудита для ИИ-агентов через протокол Model Context Protocol

MCP npm downloads AISS License Python Node Add to Cursor Install in Claude

Related MCP server: DCL Evaluator

🚀 Что такое PiQrypt MCP?

PiQrypt MCP Server предоставляет доступ по протоколу Model Context Protocol к PiQrypt — постквантовому криптографическому журналу аудита для ИИ-агентов.

Варианты использования:

  • 🤖 ИИ-агенты: подпись каждого решения криптографическим доказательством

  • 📊 Рабочие процессы n8n: добавление журнала аудита в процессы автоматизации

  • 🏦 Торговые боты: соответствие требованиям SEC/FINRA для автоматизированной торговли

  • 👥 HR-автоматизация: принятие решений о найме с помощью ИИ в соответствии с GDPR

  • 🏥 ИИ в здравоохранении: журнал аудита HIPAA для медицинских решений


📦 Установка

Предварительные требования

1. Установите piqrypt (обязательно — Python 3.8+)

pip install piqrypt

MCP-сервер делегирует все криптографические операции Python-пакету piqrypt. Если он не установлен, сервер будет возвращать понятную ошибку при каждом вызове инструмента.

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 build

PIQRYPT_PYTHON — пользовательское окружение Python

По умолчанию сервер использует python3 (Linux/Mac) или python (Windows). Если piqrypt установлен в виртуальном окружении, установите эту переменную, чтобы указать путь к нужному интерпретатору:

Windows

set PIQRYPT_PYTHON=C:\path\to\venv\Scripts\python.exe

Linux / 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+)

  1. Установите интеграцию n8n MCP

  2. Добавьте PiQrypt MCP-сервер в конфигурацию

  3. Используйте в рабочих процессах через узел 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

Фиксация событий через вебхуки

Zapier

Вебхуки + HTTP

Базовая запись событий

Что можно проверять с помощью PiQrypt MCP

Каждый вызов инструмента проходит через 4 операции — фиксация (stamp), проверка (verify), экспорт (export), поиск (search). Вот что это означает на практике в зависимости от вашего контекста:

Автоматизированная торговля / финансы Любой агент, который отправляет ордера, ребалансирует портфели или инициирует транзакции, может зафиксировать каждое решение перед исполнением. Подписанная цепочка может быть экспортирована для аудита SEC/FINRA без дополнительной инфраструктуры.

HR и автоматизация найма Любой рабочий процесс, который оценивает кандидатов, выставляет баллы за резюме или распределяет соискателей, может зафиксировать каждое решение. Обеспечивает журнал аудита, соответствующий ст. 22 GDPR для найма с помощью ИИ — кто решил что, когда и какие данные использовались (хешированные, никогда не хранятся в сыром виде).

Контент и издательские процессы Любой агент, который составляет черновики, одобряет или публикует контент, может зафиксировать каждый шаг. Полезно, когда несколько ИИ-агентов сотрудничают, и вам нужно доказать авторство — какой агент что написал и в каком порядке.

DevOps и CI/CD Любой агент, который инициирует развертывание, объединяет ветки или меняет секреты, может зафиксировать каждое действие. Обеспечивает защищенную от несанкционированного доступа запись об изменениях инфраструктуры, сделанных автономными агентами.

Здравоохранение и медицинский ИИ Любой диагностический или сортировочный агент может зафиксировать каждую рекомендацию. Обеспечивает журнал аудита, соответствующий HIPAA, связывающий каждый результат ИИ с проверяемой личностью агента.

Общий шаблон во всех случаях:

[Agent makes decision]
↓
piqrypt_stamp_event    ← sign + chain
↓
[Agent executes action]
↓
piqrypt_export_audit   ← portable proof, verifiable
                          without PiQrypt installed

🛠️ Доступные инструменты

1. piqrypt_stamp_event

Подписать решение ИИ криптографическим доказательством.

Параметры:

  • 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 и постквантовых подписей.


🗑️ Управление агентами

Агенты создаются автоматически при первой фиксации. Чтобы просмотреть и удалить агентов:

  1. Запустите Vigil: piqrypt vigil

  2. Откройте http://localhost:8421

  3. Перейдите в представление All Agents

  4. Отметьте агентов для удаления → нажмите ✕ Delete selected

  5. Подтвердите — 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]

HR-автоматизация

[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

Интерпретатор Python, используемый MCP-сервером, не может найти пакет 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 Server → Лицензия MIT - см. LICENSE PiQrypt Core → бесплатный уровень + коммерческие уровни


🔗 Ссылки


Создано с ❤️ компанией PiQrypt Inc.

Available Tools

4 tools
piqrypt_export_auditA

Export the complete agent audit trail to a portable JSON archive. Set certified=true to request a PiQrypt CA signature for legal admissibility (eIDAS Art.26). The export is self-contained and verifiable without PiQrypt installed.

ParametersJSON Schema
NameRequiredDescriptionDefault
agent_idYesAgent ID to export
certifiedNoCreate certified export (requires Pro license)
output_formatNoOutput format (json or encrypted pqz archive)json

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses that export is self-contained and verifiable, and mentions Pro license requirement. Does not detail side effects or reading behavior; with no annotations, this is moderate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, each adding essential information: purpose and certification detail. No unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Lacks output schema but describes the result as a portable JSON archive. Missing details on error conditions or what the audit trail contains, but adequate for a simple export.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. Description adds value for the certified parameter (legal admissibility) and clarifies the export scope (complete trail).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool exports a complete agent audit trail to JSON, using a specific verb and resource. It distinguishes well from sibling tools like piqrypt_search_events.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides context on when to use certified=true and notes the export is self-contained. Lacks explicit when-not-to-use or alternatives, but siblings are distinct actions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

piqrypt_search_eventsA

Search the agent's cryptographic event history by type, time range, or session. Returns signed events with chain metadata. Use to reconstruct what an agent did during a specific period.

ParametersJSON Schema
NameRequiredDescriptionDefault
event_typeNoFilter by event type (e.g., "trade_executed", "decision_made")
from_timestampNoStart timestamp (Unix UTC seconds)
to_timestampNoEnd timestamp (Unix UTC seconds)
limitNoMaximum number of results

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided; description states it returns signed events with chain metadata, implying read-only. However, it does not mention authentication, rate limits, pagination behavior, or what happens with empty results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three concise sentences with no filler. The action verb is front-loaded, and every sentence adds useful context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema; description gives a brief idea of return values (signed events with chain metadata) but omits details like event structure or metadata fields. The mention of session without a corresponding parameter reduces completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the description adds minimal value beyond repeating filter options. It mentions session but the schema lacks a session parameter, creating slight ambiguity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states verb (search), resource (cryptographic event history), and scope (by type, time range, or session). Distinguishes from siblings like piqrypt_stamp_event (create) and piqrypt_export_audit (export).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides a clear use case ('reconstruct what an agent did during a specific period'), but does not explicitly state when not to use or mention alternatives among siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

piqrypt_stamp_eventA

Create a tamper-proof cryptographic record of an agent decision. Signs the event with Ed25519, links it to the previous event in a hash chain (AISS v2.0). Call this after every significant agent action. Required for GDPR Art.22, EU AI Act Art.13, HIPAA audit trail, SEC/FINRA trading compliance.

ParametersJSON Schema
NameRequiredDescriptionDefault
agent_idYesAgent identifier (e.g., "trading_bot_v1", "hr_decision_engine")
payloadYesEvent payload containing decision data (JSON object)
previous_hashNoOptional hash of previous event for chain integrity

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Without annotations, the description discloses key behaviors: tamper-proof record creation, Ed25519 signing, and hash chain linking. It lacks details on side effects, idempotency, or error handling, but covers essential traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise at two sentences, front-loading the purpose and including key details. It is efficient but could be slightly more structured by grouping regulations separately.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 3 parameters and no output schema, the description covers purpose, usage, and behavioral details adequately. The lack of return value description is a minor shortfall, but overall it is fairly complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already describes all three parameters with 100% coverage. The description adds no additional semantics beyond the schema, so a baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool creates a cryptographic record, specifying the signing algorithm (Ed25519) and chaining mechanism (AISS v2.0), which distinguishes it from sibling tools for export, search, and verification.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly advises 'Call this after every significant agent action' and lists regulatory requirements, providing strong contextual cues. However, it does not explicitly exclude cases where the tool should not be called.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

piqrypt_verify_chainA

Verify that an agent's decision history is intact and untampered. Detects modified events, missing events, hash chain breaks, and forks. Call before trusting any historical agent output.

ParametersJSON Schema
NameRequiredDescriptionDefault
eventsYesArray of PiQrypt events to verify

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description adequately describes what the tool detects (tampering evidence). However, it lacks details on output/return behavior (e.g., error vs result) and side effects, which would improve transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no wasted words, front-loaded with the main action and key details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with full schema coverage, the description covers purpose and usage. It lacks specification of return value (e.g., boolean, report), but overall is complete enough for an agent to invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the description does not add additional meaning beyond the schema's 'Array of PiQrypt events to verify'. Baseline score of 3 is appropriate as the schema already carries the parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: verifying integrity of an agent's decision history. It lists specific detection capabilities (modified events, missing events, etc.) and distinguishes itself from siblings by its verification role.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description includes explicit usage guidance: 'Call before trusting any historical agent output.' While it doesn't explicitly exclude scenarios or name alternatives, the clear context is sufficient for an agent to decide when to invoke this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 4 tool updatesv1.5.3
    • Addedpiqrypt_export_audit
    • Addedpiqrypt_search_events
    • Addedpiqrypt_stamp_event
    • Addedpiqrypt_verify_chain

TDQS

A4.3/5.0
Disambiguation5/5

Each tool has a distinct purpose: export, search, stamp, and verify. No overlap, clear boundaries.

Naming Consistency5/5

All tools follow the consistent pattern 'piqrypt_verb_noun' (export_audit, search_events, stamp_event, verify_chain). Perfect uniformity.

Tool Count5/5

Four tools cover the essential operations for a cryptographic audit trail server without redundancy or deficiency.

Completeness5/5

The set provides a complete workflow: create events (stamp), search them, export them, and verify integrity. No obvious gaps for the domain.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

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

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Provides 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.
    4
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides an immutable, tamper-evident audit trail for AI agents, enabling event logging with cryptographic chaining, search, verification, and statistics.
    2
    MIT

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