Warden is featured on Product Hunt

Vote for us

Notion MCP Server Policy

Notion MCP server ko sandbox karo. Single-host API egress.

What it needs

ResourceAccessDetails
FilesystemWriteCache for API responses
Networkapi.notion.comNotion API
EnvNOTION_API_KEYAPI authentication

Complete Policy

command: ["node", "notion-mcp"]

filesystem:
  read: []
  write:
    - "./cache"              # API response cache

network:
  allow:
    - "api.notion.com"

env:
  allow:
    - "NOTION_API_KEY"
    - "HOME"

limits:
  memory_mb: 256
  timeout_s: 300

How to run

# Step 1: Install the server
npm install -g @makenotion/notion-mcp

# Step 2: Set your API key
export NOTION_API_KEY="secret_xxxxxxxxxxxxx"

# Step 3: Run sandboxed
warden run --policy policy-notion.yaml

Tips

  • Single-host server hai - sirf api.notion.com
  • cache directory API responses ke liye chahiye
  • HOME Node.js initialization ke liye chahiye
  • NOTION_API_KEY Notion integration settings se milta hai

Troubleshooting

ErrorFix
API key not foundNOTION_API_KEY shell mein export karo
Network blockedapi.notion.com network.allow mein hai?
Cache errorscache directory ka write grant do

Resources