Atlas / MCP servers / kasarlabs / Snak

SnakSAFE

mcp/kasarlabs/snak

Build powerful and secure AI Agents powered by Starknet.

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
23 16r · 5w · 2d
Transport
—
License
MIT
Stars
96
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

A Agent Engine for creating powerful and secure AI Agents powered by Starknet. Available as both an NPM package and a ready-to-use backend.

Quick Start

Prerequisites

  • Starknet wallet (recommended: Argent X)
  • AI provider API key (Anthropic/OpenAI/Google Gemini/Ollama)
  • Docker and Docker compose installed
  • Node.js and pnpm installed

Installation

git clone https://github.com/kasarlabs/snak.git
cd snak
pnpm install

Configuration

  1. Create a .env file by copying .env.example:
cp .env.example .env

Then, fill in the necessary values in your .env file:

# --- Starknet configuration (mandatory) ---
STARKNET_PUBLIC_ADDRESS="YOUR_STARKNET_PUBLIC_ADDRESS"
STARKNET_PRIVATE_KEY="YOUR_STARKNET_PRIVATE_KEY"
STARKNET_RPC_URL="YOUR_STARKNET_RPC_URL"

# --- AI Model API Keys (mandatory) ---
# Add the API keys for the specific AI providers you use in config/models/default.models.json
# T
Read from source at commit 608b1798e8c4OBSERVED · 2026-10-07
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add test --env ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} --env DEFAULT_MAX_TOKENS=${DEFAULT_MAX_TOKENS} --env GEMINI_API_KEY=${GEMINI_API_KEY} --env OPENAI_API_KEY=${OPENAI_API_KEY} -- npx -y @snakagent/[email protected]
claude-desktop
{
  "mcpServers": {
    "test": {
      "command": "npx",
      "args": [
        "-y",
        "@snakagent/[email protected]"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}",
        "DEFAULT_MAX_TOKENS": "${DEFAULT_MAX_TOKENS}",
        "GEMINI_API_KEY": "${GEMINI_API_KEY}",
        "OPENAI_API_KEY": "${OPENAI_API_KEY}"
      }
    }
  }
}
03

Exposed tools (23)

16 read · 5 write · 2 destructive. Blast radius: 2 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
Test_Integration_AgentreadFull integration test agent
add_mcp_serverwriteAdd an MCP server
agent-specialreadHandles special operations
agent1readHandles blockchain operations
agent2readHandles configuration management
agent3readHandles MCP operations
agent4readHandles MCP operations for user2
ask_humanread[SNAK CORE TOOL] Use this tool to ask the user for input when necessary don
block_taskread[SNAK CORE TOOL] Use when the task cannot be completed due to unresolvable obstacles. Provide details in the response.
create_agentwriteCreate a new agent configuration with default settings. Only accepts agent profile (name, group, description, contexts). All other configuration (graph, memory, rag, mcp_servers) will use default values. To modify configuration after creation, use update_agent tool.
create_taskwrite[SNAK Tool] Create a structured task with thoughts, reasoning, criticism, and speak fields
delete_agentdestructiveDelete/remove/destroy an agent configuration permanently. Use when user wants to delete, remove, or destroy an agent completely.
end_taskread[SNAK CORE TOOL] End the current task successfully. Provide details in the response.
list_agentsreadList/show/get all agent configurations with optional filtering. Use when user wants to see multiple agents, all agents, or find agents matching certain criteria.
message_ask_userreadAsk user a question and wait for response. Use for requesting clarification, asking for confirmation, or gathering additional information. This tool creates an interrupt in the graph execution that pauses until the user provides a response.
read_agentreadGet/retrieve/show/view/find details and configuration of a specific agent by ID or name. Use when user wants to see information about a particular agent.
remove_mcp_serverdestructiveRemove/uninstall/delete one or multiple MCP servers from an agent. Use when user wants to remove MCP server capabilities from an existing agent.
response_taskread[SNAK Tool] Provide a structured response with thoughts, reasoning, criticism, and speak fields
search_mcp_serverreadSearch for MCP servers
test-agentreadTest agent
tool1readTest tool
update_agentwriteUpdate/modify/change/rename specific properties of an existing agent configuration. Use when user wants to modify, change, update, edit, or rename any agent property like name, description, group, etc.
update_mcp_serverwriteUpdate/modify/change configuration of one or multiple existing MCP servers for a specific agent. Use when user wants to modify MCP server settings or configuration.
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (4 observation(s))
Network
declared (5 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (15)

MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
delete_agent, remove_mcp_server
Why it matters. 2 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.hidden_file · CWE-1104
.node-version
.node-version
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.prettierignore
.prettierignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.prettierrc.json
.prettierrc.json
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/agent/jest.config.cjs:28
'^../../config/agentConfig\\.js$': '<rootDir>/src/__mocks__/agentConfig.ts',
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/agent/src/agents/core/__tests__/utils.spec.ts:11
jest.mock('../../../tools/tools.js');
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/agent/src/agents/core/__tests__/utils.spec.ts:12
jest.mock('../../../services/mcp/src/mcp.js');
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/agent/src/agents/core/__tests__/utils.spec.ts:18
require('../../../tools/tools.js').createAllowedTools
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/agent/src/agents/core/__tests__/utils.spec.ts:21
require('../../../services/mcp/src/mcp.js').MCP_CONTROLLER
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@langchain/anthropic, @langchain/community, @langchain/core, @langchain/deepseek, @langchain/google-genai, @langchain/langgraph, @langchain/langgraph-checkpoint, @langchain/langgraph-checkpoint-postgr
Why it matters. 61 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
packages/agent/package.json
@anthropic-ai/sdk, @huggingface/transformers, axios, discord.js, gpt-tokenizer, inquirer, nanospinner, zod-to-json-schema
Why it matters. 8 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
packages/core/package.json
@types/pg, file-type, pg, prom-client, reflect-metadata, winston, zod
Why it matters. 7 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
packages/database/package.json
pg, ioredis, @types/pg, typescript
Why it matters. 4 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
packages/metrics/package.json
prom-client
Why it matters. 1 dependency range(s) float
Fix. pin exact versions or ship a lockfile
INFOPrompt injection · prompt.credential_read · CWE-94, CWE-1427
README.md:103
The agent uses the `provider` field in the model configuration to determine which API key to load from the `.env` file (e.g., if `provider` is `openai`, it loads `OPENAI_API_KEY`).
Why it matters. asks the agent to read credentials

Gates applied: no_behavioural_pass.

Audited 2026-10-07 · audit v0.4.1 · source sha 608b1798e8c4full audit observations/trust-audit/mcp-server/kasarlabs__snak.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-07608b1798e8c4SAFEB89first audit
06

Questions

What is the Snak MCP server?

Build powerful and secure AI Agents powered by Starknet.

What tools does Snak expose?

23 in total: 16 read-only, 5 that write, and 2 that can delete or overwrite (delete_agent, remove_mcp_server). Every one is listed on this page with its risk.

Is Snak safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 2 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Snak need?

It reads ANTHROPIC_API_KEY, DEFAULT_MAX_TOKENS, GEMINI_API_KEY, OPENAI_API_KEY, POSTGRES_PASSWORD, REDIS_PASSWORD, SECRET_PHRASE, SERVER_API_KEY, SMITHERY_API_KEY and SMITHERY_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How current is this page?

The grade is for one exact copy of the source (608b1798e8c4), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement