Smartpolicy
Runtime authorization for AI agents and smart contracts via an immutable on-chain policy…
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.2.0
- Listing updated
- 6 days ago
About Smartpolicy
Smartpolicy is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Runtime authorization for AI agents and smart contracts via an immutable on-chain policy registry
Install
Run in a terminal
claude mcp add smartpolicy --env SMARTPOLICY_ISSUER_KEY='<SMARTPOLICY_ISSUER_KEY>' -- npx -y @smartpolicy/mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"smartpolicy": {
"command": "npx",
"args": [
"-y",
"@smartpolicy/mcp"
],
"env": {
"SMARTPOLICY_ISSUER_KEY": "<SMARTPOLICY_ISSUER_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"smartpolicy": {
"command": "npx",
"args": [
"-y",
"@smartpolicy/mcp"
],
"env": {
"SMARTPOLICY_ISSUER_KEY": "<SMARTPOLICY_ISSUER_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"smartpolicy": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smartpolicy/mcp"
],
"env": {
"SMARTPOLICY_ISSUER_KEY": "<SMARTPOLICY_ISSUER_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"smartpolicy": {
"command": "npx",
"args": [
"-y",
"@smartpolicy/mcp"
],
"env": {
"SMARTPOLICY_ISSUER_KEY": "<SMARTPOLICY_ISSUER_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"smartpolicy": {
"command": "npx",
"args": [
"-y",
"@smartpolicy/mcp"
],
"env": {
"SMARTPOLICY_ISSUER_KEY": "<SMARTPOLICY_ISSUER_KEY>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
SMARTPOLICY_REGISTRYPolicyRegistry contract address (omit for the public Sepolia default)SMARTPOLICY_VERIFIERGrantVerifier contract address (omit for the public Sepolia default)SMARTPOLICY_RPC_URLEVM RPC endpoint (omit for the public Sepolia default)SMARTPOLICY_ISSUER_KEYOptional grant-issuer private key; enables the grant_issue tool
Pricing
Open source
Prices change. Check smartpolicy.io before you buy.
Smartpolicy FAQ
Is Smartpolicy free?
Yes. Smartpolicy is open source, so you can use and self-host it for free.
How do I add Smartpolicy to Claude Code?
Run this command in your terminal: claude mcp add smartpolicy --env SMARTPOLICY_ISSUER_KEY='<SMARTPOLICY_ISSUER_KEY>' -- npx -y @smartpolicy/mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.