Skip to main content
Glama
SynapCores MCP Server

SynapCores MCP Server

Official

SynapCores MCP Server

SynapCores is an AI-native database: SQL, vector search, a Cypher graph, in-database AutoML and LLM generation in one self-hosted engine. The engine has a built-in Model Context Protocol server at /v1/mcp, so an AI assistant can query and build on your data directly.

This package, @synapcores/mcp, is the stdio connector for that server. It is small, MIT-licensed and has zero dependencies (Node.js 18+).

MCP client  ⇄  stdio  ⇄  @synapcores/mcp  ⇄  HTTP (JSON-RPC)  ⇄  SynapCores /v1/mcp

Tools

The engine provides 15 tools:

Tool

What it does

list_tables

List the tables in the database

describe_table

Columns, types and constraints for a table

query

Run a SELECT and return rows

execute

Run INSERT / UPDATE / DELETE and DDL (CREATE / ALTER / DROP)

validate_query

Check SQL syntax, optionally with the execution plan

sql_manual

SynapCores SQL syntax and examples

semantic_search

Similarity search over a vector collection; the query text is embedded for you

embed_text

Vector embedding for any text

graph_query

Cypher on the graph (MATCH / MERGE / CREATE / SET / DELETE, gds algorithms)

train_model

Train an AutoML model on a table column

predict

Score rows with a trained model

list_models

List trained models

describe_model

Algorithm, metrics and feature importance of a model

generate_text

Generate text with the engine's configured LLM

agent_soul

Inspect the database's learned runs, episodes, goals and plans (administrator key)

The tools come from the engine, so they update when you upgrade SynapCores. If the engine isn't reachable, the server still starts and lists these 15 tools from a bundled copy (taken from SynapCores 2.4.8); tool calls then return an error asking you to start the engine.

Related MCP server: NLQueries

1. Run SynapCores

curl -fsSL https://get.synapcores.com | SYNAPCORES_REF=mcp-readme sh

Press Enter at each prompt to accept the defaults. SynapCores prints your admin password the first time it starts.

On Linux (and Windows, in a WSL2 Ubuntu terminal), the installer starts SynapCores as a service. Show your admin password and API key:

sudo journalctl -u synapcores --no-pager | grep -A9 "FIRST-BOOT CREDENTIALS"

On macOS (Apple Silicon):

  1. No Homebrew yet? Install it first with the official command, /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)", then run the "Next steps" commands it prints.

  2. Run the one-liner above and press Enter at each prompt. The installer starts SynapCores (now and at every login) and prints your admin password. Answered n to "Start SynapCores now?" Start it with:

    launchctl bootstrap "gui/$(id -u)" ~/Library/LaunchAgents/com.synapcores.gateway.plist
  3. Show your admin password and API key again (after a manual start, give it a few seconds):

    grep -A9 "FIRST-BOOT CREDENTIALS" ~/.synapcores/logs/gateway.err.log

Then open http://localhost:8080, sign in as admin and change the password. See synapcores.com/download for other options. The gateway listens on http://127.0.0.1:8080 by default.

2. Get an API key

Use an API key, not a login token: API keys don't expire after 24 hours. The first start prints one in the same FIRST-BOOT CREDENTIALS block, on the OpenClaw Memory API key line; the password command above shows it. To create a dedicated key:

TOKEN=$(curl -s http://127.0.0.1:8080/v1/auth/login -H 'Content-Type: application/json' \
  -d '{"username":"admin","password":"<your admin password>"}' | jq -r .access_token)

curl -s http://127.0.0.1:8080/v1/api-keys -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
  -d '{"name":"claude-code","permission":"FullAccess"}' | jq -r .raw_key

The key is shown once. Keep it in an environment variable:

export SYNAPCORES_API_KEY=<the key>

Read-only keys: create the key with "permission":"ReadOnly" to let the assistant read and search while the engine refuses SQL writes and DDL through execute, and Cypher writes through graph_query.

3. Add SynapCores to Claude Code

stdio, with this package

claude mcp add synapcores \
  -e SYNAPCORES_URL=http://127.0.0.1:8080 \
  -e SYNAPCORES_API_KEY=$SYNAPCORES_API_KEY \
  -- npx -y @synapcores/mcp

HTTP, no package

Claude Code can also talk to the engine's MCP endpoint directly:

claude mcp add --transport http synapcores http://127.0.0.1:8080/v1/mcp \
  --header "Authorization: Bearer $SYNAPCORES_API_KEY"

For a team repo, add --scope project and single-quote the header ('Authorization: Bearer ${SYNAPCORES_API_KEY}') so .mcp.json stores the variable name, not the key.

Check the connection with claude mcp list, then ask:

"What tables are in my SynapCores database? Describe the biggest one."

"Find the five support articles most similar to 'reset my password'."

"Train a model on customers to predict churned, then show the 10 highest-risk customers."

Configuration

Variable

Description

SYNAPCORES_URL

Gateway URL. Default http://127.0.0.1:8080.

SYNAPCORES_API_KEY

SynapCores API key, sent as Authorization: Bearer.

SYNAPCORES_TIMEOUT_MS

Per-request timeout. Default 300000 (5 minutes).

Every tool call goes through the gateway's authentication, so the assistant sees exactly what its API key is allowed to see.

stdout carries only JSON-RPC messages; diagnostics go to stderr.

Development

npm test                                   # unit tests (no engine needed)
SYNAPCORES_API_KEY=... npm run smoke       # live check against a running engine

License

MIT © SynapCores

Available Tools

15 tools
agent_soulInspect an agent's learned stateA
Read-onlyIdempotent

Inspect the current tenant/database's learned memory, episodes, rewards, runs, plans, goals, skills, policy or audit, one section per call. Use it to review or audit what an agent has learned and why it acts as it does; use query for ordinary SQL tables. Administrator required; read-only, paginated, no execution.

Inputs: section (required), database (required), after, limit.

describe_modelDescribe an AutoML modelA
Read-onlyIdempotent

Get full details of one trained AutoML model: algorithm, hyperparameters, metrics, feature names, and feature importance when the algorithm provides it. Use it after list_models or train_model to judge a model before relying on predict. Read-only.

Inputs: model_name (required), include_feature_importance.

describe_tableDescribe a table's columnsA
Read-onlyIdempotent

Return the column definitions of one table: name, type, nullable, primary_key and default for each column. Use it before writing INSERT/UPDATE statements or WHERE filters, once list_tables has given you the table name; it reads the schema, not the data, unless include_samples=true, which adds up to 5 distinct example values per column (one SELECT DISTINCT per column).

Inputs: table (required), database, include_samples.

embed_textEmbed text as a vectorA
Read-onlyIdempotent

Turn a piece of text into an embedding vector with the engine's configured embedding model and return {embedding, dimensions, model}. Use it when you need the raw vector, for example to store it or compare it yourself; to search, use semantic_search for vector collections or query with EMBED() and COSINE_SIMILARITY() for table columns. Nothing is stored.

Inputs: text (required), model.

executeRun a SQL write or schema changeA
Destructive

Run a SQL write (INSERT, UPDATE, DELETE) or schema change (CREATE, ALTER, DROP) against a SynapCores database and return rows_affected and execution_time_ms. Use query for SELECT/WITH, which this tool rejects, and validate_query or dry_run=true to check syntax without changing anything; Cypher statements sent here run on the graph, as with graph_query. Changes are permanent (DELETE and DROP remove data), and read-only API keys are refused.

Inputs: sql (required), dry_run, database.

generate_textGenerate text with the engine's LLMA
Read-only

Generate text from a prompt with the LLM configured on the SynapCores engine and return {text, model, tokens_used, processing_time_ms}. Use it to summarize or explain results from other tools, such as predict or query output, inside a multi-step workflow; to generate per row inside SQL, use GENERATE() in query. It does not read or change your data, and output is sampled, so repeated calls can differ.

Inputs: prompt (required), model, max_tokens, temperature.

graph_queryRun a Cypher graph queryA
Destructive

Run Cypher against a database's property graph and return {rows, execution_time_ms}: read with MATCH, write with CREATE, MERGE, SET and DELETE, combine with UNWIND and UNION, and run graph algorithms with CALL gds.<algorithm>(...) YIELD ...; separate several statements with ;. Use it for relationship questions such as paths, neighbors and communities; use query for SQL tables. Write clauses change the graph permanently, and read-only API keys are refused for them.

Inputs: cypher (required), params, database, graph_name.

list_modelsList AutoML modelsA
Read-onlyIdempotent

List the AutoML models this tenant has trained, filtered by status (default deployed) and optionally task type, and return {models: [{name, task_type, status, version, created_at}], count}. Use it to find a model name for predict; use describe_model for accuracy, hyperparameters and feature importance. Read-only.

Inputs: status, task_type.

list_tablesList tablesA
Read-onlyIdempotent

List the tables in a SynapCores database, optionally filtered by a LIKE-style name pattern, and return {database, tables: [{name}], count}. Use it to discover what exists before writing SQL; use describe_table for a table's columns and types. Internal tables (names starting with "_") are hidden unless include_system=true. Read-only.

Inputs: pattern, database, include_system.

predictPredict with a trained modelA
Read-onlyIdempotent

Score rows with a model trained by train_model and return {predictions, model_name, latency_ms, row_count}: calibrated probabilities in [0, 1] for classification (positive-class probability) or numbers for regression, one per input row. Use it for inference on rows you pass inline; use describe_model to check a model's metrics and features first. Every row must have the same columns, named like the training columns. Your tables are not modified.

Inputs: inputs (required), model_name (required), return_proba.

queryRun a read-only SQL queryA
Read-onlyIdempotent

Run a read-only SQL SELECT (or WITH ... SELECT) on a SynapCores database and return the rows. Use it to read data, including vector search over table columns with EMBED() and COSINE_SIMILARITY(); use execute for writes and schema changes (any other statement is rejected here), graph_query for Cypher, and semantic_search for vector collections. When the SQL has no LIMIT, LIMIT limit (default 1000, max 10000) and OFFSET offset are appended. Returns column names and types plus rows as JSON, or a Markdown table or CSV per format.

Inputs: sql (required), limit, format, offset, +1 more.

sql_manualSynapCores SQL referenceA
Read-onlyIdempotent

Look up SynapCores SQL syntax and examples for one topic (for example SELECT, CREATE TABLE, EMBED, COSINE_SIMILARITY or ASK), or browse a whole category. Use it before writing SQL for query or execute, especially SynapCores-specific AI functions; it reads built-in documentation only and never touches your data. An unknown topic returns an error listing topics you can use.

Inputs: topic, category.

train_modelTrain an AutoML modelA
Destructive

Train an AutoML model that predicts one column of a table from its other columns, without writing SQL: wraps CREATE EXPERIMENT, runs max_trials trials, keeps the best algorithm, registers it as model_name, and returns the best score (accuracy for classification, R² for regression) and the algorithm. Then call predict with that name, or describe_model for full metrics. Reusing an existing model_name replaces that model; more trials take longer and can score higher. Table, target and feature names must use only letters, digits and underscores.

Inputs: target (required), collection (required), features, task_type, +2 more.

validate_queryCheck SQL without running itA
Read-onlyIdempotent

Check whether a SQL statement parses, without running it, and return {valid, statement_type, errors}. With include_plan=true, a SELECT also returns its execution plan (EXPLAIN), which helps spot slow queries. Use it before execute on writes you want to be sure of, or to debug a failing query; it never changes data.

Inputs: sql (required), include_plan.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 15 tools

    Disambiguation4/5

    Core pairs like query vs execute, describe_model vs list_models, and embed_text vs semantic_search are explicitly contrasted in their descriptions, so an agent can route correctly. The remaining soft spots are the vector paths (semantic_search vs query with EMBED/COSINE_SIMILARITY) and the outlier agent_soul, whose boundary with query is only loosely drawn.

    Naming Consistency4/5

    Almost all names follow a verb_noun snake_case pattern (describe_table, list_tables, validate_query, train_model, describe_model, semantic_search, graph_query). Minor deviations are the bare verbs execute and query and the noun-phrase sql_manual, but the convention stays readable and predictable.

    Tool Count4/5

    At 15 tools the surface sits at the top of the comfortable range, but the server spans four distinct capabilities (SQL, graph, vector, AutoML/LLM), so most tools genuinely earn a slot. agent_soul adds a fifth, lightly-related area that pushes the set slightly beyond a single coherent scope.

    Completeness4/5

    SQL read/write/validate/docs, AutoML train-predict-inspect, vector search/embed, Cypher graph, text generation and agent introspection give broad lifecycle coverage. Gaps are minor but real: no vector collection listing or management (semantic_search assumes you already know the collection name), no model delete/update, and no list_databases or graph-schema discovery tool.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Zero-config MCP server that empowers AI agents to safely query SQL and NoSQL databases like PostgreSQL, MySQL, SQLite, MongoDB, and Redis.
      5
      35 npm
      1
      MIT
    • F
      license
      A
      quality
      B
      maintenance
      Natural language to SQL engine with multi-connector support (PostgreSQL, MySQL, Snowflake, BigQuery, DuckDB), document QA, semantic caching, and self-hosted MCP server.
      9
      31 PyPI
      5
      -
    • A
      license
      B
      quality
      C
      maintenance
      Enables AI assistants to connect to 17+ databases and query/analyze data using natural language via MCP and HTTP APIs, supporting platforms like Claude Desktop, Cursor, and VS Code.
      42
      105 npm
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to maintain a self-hosted typed knowledge graph on Postgres and pgvector over MCP, with deduplicating writes, hybrid retrieval, and database-enforced isolation.
      1
      -