AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified Apache-2.0 Self-run

Stoolap Mcp

mcp-stoolap-stoolap-mcp · by stoolap

MCP server for Stoolap

No reviews yet
0 installs
21 views
0.0% view→install

Install

$ agentstack add mcp-stoolap-stoolap-mcp

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-stoolap-stoolap-mcp)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Stoolap Mcp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

stoolap-mcp

MCP (Model Context Protocol) server for Stoolap, an embedded SQL database. Lets AI assistants query, manage, and analyze Stoolap databases with full access to all SQL features.

Works with any MCP-compatible AI client: Claude Desktop, Claude Code, Cursor, Windsurf, Cline, and others.

Quick Start

Claude Desktop

Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "stoolap": {
      "command": "npx",
      "args": ["-y", "@stoolap/mcp", "--path", "./mydata"]
    }
  }
}

Claude Code

claude mcp add stoolap -- npx -y @stoolap/mcp --path ./mydata

In-memory (no persistence)

{
  "mcpServers": {
    "stoolap": {
      "command": "npx",
      "args": ["-y", "@stoolap/mcp"]
    }
  }
}

Read-only mode

{
  "mcpServers": {
    "stoolap": {
      "command": "npx",
      "args": ["-y", "@stoolap/mcp", "--path", "./mydata", "--read-only"]
    }
  }
}

Tools (30)

Query and Analysis

| Tool | Description | |------|-------------| | query | Run SELECT, SHOW, DESCRIBE queries. Supports JOINs, CTEs, window functions, subqueries, set operations, JSON operators, vector search, temporal queries (AS OF), and all aggregate/scalar functions. Returns results as JSON. | | execute | Run INSERT, UPDATE, DELETE with parameter binding ($1, $2, ...). Supports ON DUPLICATE KEY UPDATE (upsert), RETURNING clause, and expression-based updates. Returns affected row count. | | execute_batch | Execute the same SQL with multiple parameter sets in a single atomic transaction. Parses SQL once, reuses for every row. All rows succeed or all are rolled back. | | explain | Show query execution plan. Set analyze=true to run the query and show actual runtime stats (row counts, timing, join algorithms). |

Transaction Control

| Tool | Description | |------|-------------| | begin_transaction | Begin a new transaction with optional isolation level (read_committed or snapshot). Only one active transaction at a time. | | transaction_execute | Execute a DML statement within the active transaction. Sees uncommitted changes. Supports RETURNING clause. | | transaction_query | Run a SELECT query within the active transaction. Sees uncommitted changes. Supports aggregates, JOINs, GROUP BY, window functions, CTEs, and subqueries. | | transaction_execute_batch | Execute the same SQL with multiple parameter sets within the active transaction. | | commit_transaction | Commit the active transaction. All changes become permanent. | | rollback_transaction | Rollback the active transaction. All changes are discarded. | | savepoint | Create a named savepoint within the active transaction. | | rollback_to_savepoint | Rollback to a savepoint, undoing changes after it without aborting the transaction. | | release_savepoint | Release (remove) a savepoint. Changes are kept. |

Schema Inspection

| Tool | Description | |------|-------------| | list_tables | List all tables | | list_views | List all views | | describe_table | Show columns, types, nullability, keys, defaults, and extras (AUTO_INCREMENT, foreign keys) | | show_create_table | Get the full CREATE TABLE DDL including all constraints | | show_create_view | Get the full CREATE VIEW DDL | | show_indexes | Show all indexes on a table (type, columns, uniqueness) | | get_schema | Get the complete database schema: all tables with columns, indexes, DDL, plus all views |

Schema Modification

| Tool | Description | |------|-------------| | create_table | Create a table with INTEGER, FLOAT, TEXT, BOOLEAN, TIMESTAMP, JSON, VECTOR(N) columns. Supports PRIMARY KEY, NOT NULL, UNIQUE, DEFAULT, CHECK, AUTOINCREMENT, REFERENCES (foreign keys), IF NOT EXISTS, and CREATE TABLE AS SELECT. | | create_index | Create BTREE, HASH, BITMAP, or HNSW indexes. Supports UNIQUE and composite (multi-column). HNSW accepts m, efconstruction, ef_search, metric (l2/cosine/ip) params. | | create_view | Create a read-only view (persists across restarts) | | alter_table | ADD COLUMN, DROP COLUMN, RENAME COLUMN, MODIFY COLUMN (change type), RENAME TO | | drop | Drop a table, view, or index (supports IF EXISTS) |

Database Administration

| Tool | Description | |------|-------------| | analyze_table | Collect optimizer statistics (histograms, distinct counts, min/max) for better query plans | | vacuum | Clean up deleted rows, old MVCC versions, and compact indexes | | pragma | Get/set database config: syncmode, snapshotinterval, keepsnapshots, walflush_trigger. Trigger manual snapshot or vacuum. | | version | Get the Stoolap engine version | | list_functions | List all 130+ built-in SQL functions with signatures, grouped by category (aggregate, window, string, math, datetime, json, hash, conditional, type, vector, system) |

Auto-injected Instructions

The server provides built-in MCP instructions that are automatically sent to the AI during the connection handshake. This means any AI client receives a comprehensive Stoolap SQL reference on connect, covering data types, supported syntax, all operator categories, index types, vector search, transaction isolation levels, and known limitations, without the user needing to configure anything. The AI can write correct Stoolap SQL from the first query.

For deeper reference (live schema + full function signatures), attach the sql-assistant prompt.

Resources

| URI | Description | |-----|-------------| | stoolap://schema | Full database schema with all tables, views, columns, indexes, and DDL statements | | stoolap://sql-reference | Live database schema plus complete Stoolap SQL reference: data types, 130+ functions with signatures, operators, joins, indexes, window functions, CTEs, transactions, temporal queries, vector search, and known limitations |

Prompts

| Prompt | Description | |--------|-------------| | sql-assistant | Same content as stoolap://sql-reference delivered as an MCP prompt. Use whichever your client supports. |

SQL Coverage

The MCP server exposes the full Stoolap SQL surface through the query and execute tools:

  • 7 data types: INTEGER, FLOAT, TEXT, BOOLEAN, TIMESTAMP, JSON, VECTOR(N)
  • Joins: INNER, LEFT, RIGHT, FULL OUTER, CROSS, NATURAL, self-joins, multi-table
  • Subqueries: scalar, IN/NOT IN, EXISTS/NOT EXISTS, ANY/SOME/ALL, correlated, derived tables
  • CTEs: WITH, WITH RECURSIVE, multiple CTEs, column aliases
  • Window functions: ROWNUMBER, RANK, DENSERANK, NTILE, LEAD, LAG, FIRSTVALUE, LASTVALUE, NTHVALUE, PERCENTRANK, CUME_DIST (plus all aggregates with OVER)
  • GROUP BY extensions: ROLLUP, CUBE, GROUPING SETS, GROUPING()
  • Aggregates: COUNT, SUM, AVG, MIN, MAX, MEDIAN, STRINGAGG, ARRAYAGG, STDDEV, VARIANCE, and more
  • 100+ scalar functions: string, math, date/time, JSON, hash, conditional, vector, type conversion
  • Operators: arithmetic, comparison, logical, bitwise, LIKE/ILIKE/GLOB/REGEXP, JSON (->/->>), vector (), BETWEEN, IN, IS [NOT] DISTINCT FROM, INTERVAL
  • Transactions: BEGIN with isolation levels (READ COMMITTED, SNAPSHOT), COMMIT, ROLLBACK, SAVEPOINT
  • Temporal queries: AS OF TIMESTAMP, AS OF TRANSACTION
  • Index types: BTree, Hash, Bitmap, HNSW (vector), Unique, Composite
  • Vector search: k-NN with L2, cosine, inner product distances and HNSW indexing
  • EXPLAIN / EXPLAIN ANALYZE for query plan inspection

Options

| Flag | Default | Description | |------|---------|-------------| | --path | :memory: | Database path. Use :memory: for in-memory or a file path for persistence. | | --read-only | false | Disable write operations. Read-only transactions (begin, query, commit) are still allowed for consistent reads. |

Requirements

  • Node.js >= 18
  • The @stoolap/node package (installed automatically as a dependency)

The Stoolap native addon is bundled with @stoolap/node via prebuilt binaries for Linux (x64, arm64) and macOS (x64, arm64).

Building from Source

git clone https://github.com/stoolap/stoolap-mcp.git
cd stoolap-mcp
npm install
npm run build
node build/index.js --path ./mydata

License

Apache-2.0

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.