Agentic Vault MCP Server

Agentic Vault MCP Server

Exposes an EVM wallet to AI agents via MCP, using AWS KMS for HSM-backed signing and a deny-by-default policy engine for secure DeFi transaction approvals.

Category
访问服务器

README

Agentic Vault

<p align="center"> <img src="https://raw.githubusercontent.com/agenticvault/agentic-vault/main/docs/img/cover.gif" alt="Agentic Vault" width="100%"> </p>

Website npm version CI License: MIT Discord

English | 繁體中文 | 简体中文 | 日本語 | 한국어

Server-side EVM signing with AWS KMS and built-in DeFi protocol awareness. Expose your wallet to AI agents via MCP, CLI, or OpenClaw with deny-by-default policy enforcement and full audit logging.

Why Agentic Vault

AI agents need to sign blockchain transactions, but giving them private keys is dangerous. Agentic Vault solves this by keeping keys in AWS KMS (HSM) and providing a policy engine that constrains what agents can sign. The agent sees high-level tools (sign_swap, sign_permit); the private key never leaves the hardware.

Features

  • HSM-backed signing -- private keys never leave AWS KMS; only digests are sent for signing
  • DeFi protocol awareness -- calldata decoding for ERC-20, Uniswap V3, and Aave V3 with protocol-specific policy rules
  • Deny-by-default policy engine -- chain, contract, selector, amount, deadline, and protocol-level constraints
  • Multiple interfaces -- use as a TypeScript library, CLI, MCP server, or OpenClaw plugin
  • Audit logging -- structured JSON audit trail for every signing operation (approved, denied, errored)
  • EVM-native -- built on viem with full EIP-712 typed data support

Quick Start

Requires Node.js 22+.

npm install @agenticvault/agentic-vault
import { createSigningProvider, EvmSignerAdapter } from '@agenticvault/agentic-vault';

const provider = createSigningProvider({
  provider: 'aws-kms',
  keyId: 'arn:aws:kms:us-east-1:123456789:key/your-key-id',
  region: 'us-east-1',
});

const signer = new EvmSignerAdapter(provider);
const address = await signer.getAddress();

For a no-AWS quick test, use dry-run mode (decode + policy check without signing):

npx agentic-vault dry-run --chain-id 1 --to 0xa0b869... --data 0x095ea7b3...

See AWS KMS Setup for key creation and IAM policy.

Interfaces

Interface Use Case AWS Required
TypeScript Library Embed signing in your app Yes
CLI Command-line signing + dry-run Partial
MCP Server Expose wallet to AI agents (Claude, etc.) Yes
OpenClaw Plugin Use as OpenClaw agent tool Yes

See Interfaces Guide for usage examples and configuration.

Supported Protocols

Protocol Actions Decoder Policy Evaluator
ERC-20 approve, transfer Yes Yes (allowance cap, spender allowlist)
Uniswap V3 exactInputSingle Yes Yes (token pair, slippage, recipient)
Aave V3 supply, borrow, repay, withdraw Yes Yes (asset allowlist, interest rate mode)

Unknown calldata is rejected by default (fail-closed). The dispatcher uses 2-stage resolution: contract address first, then selector-based fallback (e.g., ERC-20). Raw signing tools (sign_transaction, sign_typed_data) bypass protocol decoding and are disabled unless --unsafe-raw-sign is explicitly enabled.

Configuration

The policy engine uses a JSON configuration file. Without a policy file, all policy-guarded signing operations are denied (deny-by-default).

See Policy Reference for the full schema and examples, or start with policy.example.json.

Security Model

Trust Boundary

 AI Agent (Claude / MCP Client / OpenClaw)
          |
          | MCP Protocol / OpenClaw Plugin API
          v
 +------------------------------------+
 |   Agentic Vault                    |
 |  +-----------+ +--------+ +-----+ |
 |  | Protocol  | | Policy | | Audit| |
 |  | Dispatcher| | Engine | | Sink | |
 |  +-----------+ +--------+ +-----+ |
 |          |                         |
 |  +--------------------+           |
 |  | EvmSignerAdapter   |           |
 |  +--------------------+           |
 +-----------|------------------------+
             | digest only
             v
 +------------------------------------+
 |       AWS KMS (HSM)                |
 |   Private key never leaves         |
 +------------------------------------+

Key Principles

Principle Description
Key isolation Private keys remain in the HSM; only 32-byte digests are sent for signing
Deny by default Policy engine rejects all requests unless explicitly allowed
Fail-closed Unknown calldata is rejected by default; raw signing tools are disabled unless --unsafe-raw-sign is enabled
Audit trail Every operation is logged as structured JSON to stderr with caller tag
Minimal surface Raw signing tools (sign_transaction, sign_typed_data) are disabled by default

Claude Code Plugin

4 skills interact with the wallet through MCP tools only -- they never access keys directly.

Skill Description
sign-swap Orchestrate a swap signing operation
sign-permit Orchestrate an EIP-2612 permit signing
check-wallet Check wallet address and health status
audit-log Query the audit log

Package Exports

Subpath Contents MCP dependency
@agenticvault/agentic-vault Core signing (SigningProvider, EvmSignerAdapter, factory) No
@agenticvault/agentic-vault/protocols Protocol decoders, dispatcher, PolicyEngine V2, workflows No
@agenticvault/agentic-vault/agentic MCP server, audit logger Yes

Documentation

Document Description
Interfaces Guide TypeScript, CLI, MCP, and OpenClaw usage
Policy Reference Policy JSON schema, fields, and examples
AWS KMS Setup Key creation, IAM policy, authentication
OpenClaw Plugin OpenClaw plugin package and configuration
Architecture Decisions ADRs for key design choices
Contributing Development workflow and guidelines

Roadmap

  • Additional signing providers (GCP KMS, HashiCorp Vault)
  • More protocol decoders (Curve, Compound V3)
  • Multi-signature support
  • Remote MCP server mode (HTTP transport with OAuth 2.1)

Contributing

See CONTRIBUTING.md for development workflow, branch naming, and commit conventions.

This project follows the Contributor Covenant Code of Conduct.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选