npm @declaw/mcp-serverstdioApache-2.0updated 26d ago
MCP server for Declaw — secure sandbox execution for AI agents with network policies, PII scanning, prompt injection defense, and audit logging.
What can you do with declaw ai?
Declaw MCP Server
MCP server for Declaw — secure sandbox execution for AI agents with network policies, PII scanning, prompt injection defense, and audit logging.
Works with Claude Desktop, Claude Code, Cursor, Windsurf, and any MCP-compatible AI tool.
Quick Start
Claude Desktop / Cursor / Windsurf
Add to your MCP config:
{
"mcpServers": {
"declaw": {
"command": "npx",
"args": ["-y", "@declaw/mcp-server"],
"env": {
"DECLAW_API_KEY": "your-api-key"
}
}
}
}
Claude Code
claude mcp add declaw -- npx -y @declaw/mcp-server
Set DECLAW_API_KEY in your environment.
Tools
| Tool | Description |
|---|---|
create_sandbox |
Create a secure sandbox with configurable security policies |
run_command |
Execute a shell command inside a sandbox |
read_file |
Read a file from a sandbox |
write_file |
Write a file to a sandbox |
list_files |
List directory contents in a sandbox |
kill_sandbox |
Destroy a sandbox |
list_sandboxes |
List all active sandboxes |
Security Presets
When creating a sandbox, choose a security preset:
none— No guardrails. Full internet access.standard(default) — PII scanning + audit logging. Full internet access.strict— PII scanning + prompt injection defense + audit logging + network deny-all.
You can also pass allowed_domains to restrict outbound traffic to specific domains:
create_sandbox with template="python", security_preset="strict", allowed_domains=["pypi.org", "github.com"]
Why Declaw?
| Declaw | Other Sandbox Providers | |
|---|---|---|
| Sandbox execution | Yes | Yes |
| Non-bypassable network controls | Yes | ?? |
| PII scanning | Yes | No |
| Injection defense | Yes | No |
| Full audit trail | Yes | Basic |
| Snapshots | Yes | Varies |
| Multiple templates | 8 built-in | Varies |
| Interactive stdio | Yes | Varies |
Environment Variables
| Variable | Required | Description |
|---|---|---|
DECLAW_API_KEY |
Yes | Your Declaw API key |
DECLAW_DOMAIN |
No | Custom API domain (for on-prem deployments) |
On-Prem
For self-hosted Declaw deployments, set the domain:
{
"mcpServers": {
"declaw": {
"command": "npx",
"args": ["-y", "@declaw/mcp-server"],
"env": {
"DECLAW_API_KEY": "your-api-key",
"DECLAW_DOMAIN": "declaw.internal.company.com"
}
}
}
}
License
Apache-2.0
Install
Add declaw ai to your client. Pick the one you use.
claude mcp add mcp-server -- npx -y @declaw/mcp-servercodex mcp add mcp-server -- npx -y @declaw/mcp-serveramp mcp add mcp-server -- npx -y @declaw/mcp-server{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@declaw/mcp-server"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@declaw/mcp-server"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"mcp-server","command":"npx","args":["-y","@declaw/mcp-server"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@declaw/mcp-server"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@declaw/mcp-server"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@declaw/mcp-server"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"mcp-server": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@declaw/mcp-server"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"mcp-server": {
"command": {
"path": "npx",
"args": [
"-y",
"@declaw/mcp-server"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @declaw/mcp-serverRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
7 tools
declaw ai exposes 7 tools to a connected agent.
- create_sandbox
- Create a secure sandbox with configurable security policies
- run_command
- Execute a shell command inside a sandbox
- read_file
- Read a file from a sandbox
- write_file
- Write a file to a sandbox
- list_files
- List directory contents in a sandbox
- kill_sandbox
- Destroy a sandbox
- list_sandboxes
- List all active sandboxes
Score
75 / 100
Good
- Documentation22/25
- Maintenance19/25
- Trust16/20
- Capability6/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 19 days ago
- Has a release history
- Repository is not archived
- Licensed Apache-2.0
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 7 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Version history
| Versions | Published |
|---|---|
| 0.1.2Latest | Jun 13, 2026 |