SynapCores MCP Server
OfficialOne-line summary: This server gives an AI assistant full access to a self-hosted SynapCores database — schema discovery, SQL reads and writes, vector search, Cypher graph queries, in-database AutoML, and LLM text generation.
Explore the schema —
list_tables(with LIKE patterns, optional system tables) anddescribe_table(columns, types, keys, defaults, optional sample values).Read data —
queryruns SELECT/WITH with automatic LIMIT/OFFSET paging and rows, markdown, or CSV output, includingEMBED()/COSINE_SIMILARITY()vector search over table columns.Write data and change schema —
executeruns INSERT/UPDATE/DELETE and CREATE/ALTER/DROP, withdry_runfor syntax-only checks.Check SQL safely —
validate_queryparses statements and can return an EXPLAIN plan;sql_manuallooks up SynapCores SQL syntax, functions, operators, and types.Vector search —
semantic_searchfinds the k nearest items in a vector collection from natural-language text with metadata filters;embed_textreturns raw embedding vectors.Query the graph —
graph_queryruns Cypher (MATCH/MERGE/CREATE/SET/DELETE, UNWIND, UNION) andgdsgraph algorithms.Train and use models —
train_modelbuilds an AutoML model on a table column, thenpredictscores rows;list_modelsanddescribe_modelreport status, metrics, and feature importance.Generate text —
generate_textcalls the engine's configured LLM for summarizing or explaining other tool output.Audit agent behavior —
agent_soulinspects learned memory, episodes, rewards, runs, plans, goals, skills, policy, and audit logs (administrator key, paginated).Scoped and safe — every call goes through gateway auth, so API keys control visibility; ReadOnly keys block SQL writes/DDL and Cypher writes, and tools carry read-only/destructive annotations.
Allows CrewAI agents to use SynapCores MCP tools for database queries, vector search, graph operations, AutoML, and LLM generation.
Provides LangChain agents with MCP tools to access SynapCores capabilities, including SQL querying, vector search, graph traversal, AutoML, and text generation.
Provides LangGraph agents with MCP tools for SynapCores database operations, semantic search, graph queries, AutoML, and agent memory access.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SynapCores MCP Server Find the five support articles most similar to 'reset my password'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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/mcpTools
The engine provides 15 tools:
Tool | What it does |
| List the tables in the database |
| Columns, types and constraints for a table |
| Run a SELECT and return rows |
| Run INSERT / UPDATE / DELETE and DDL (CREATE / ALTER / DROP) |
| Check SQL syntax, optionally with the execution plan |
| SynapCores SQL syntax and examples |
| Similarity search over a vector collection; the query text is embedded for you |
| Vector embedding for any text |
| Cypher on the graph (MATCH / MERGE / CREATE / SET / DELETE, |
| Train an AutoML model on a table column |
| Score rows with a trained model |
| List trained models |
| Algorithm, metrics and feature importance of a model |
| Generate text with the engine's configured LLM |
| 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 shPress 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):
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.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.plistShow 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_keyThe 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/mcpHTTP, 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
customersto predictchurned, then show the 10 highest-risk customers."
Configuration
Variable | Description |
| Gateway URL. Default |
| SynapCores API key, sent as |
| 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 engineLinks
Website: https://synapcores.com
SQL reference: https://github.com/SynapCores/SQLv2
License
MIT © SynapCores
Available Tools
15 toolsagent_soulInspect an agent's learned stateARead-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 modelARead-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 columnsARead-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 vectorARead-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 changeADestructive
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 LLMARead-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 queryADestructive
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 modelsARead-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 tablesARead-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 modelARead-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 queryARead-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.
semantic_searchSemantic search in a vector collectionARead-onlyIdempotent
Find the k items in a vector collection closest in meaning to a natural-language query: the tool embeds query_text with the engine's configured embedding model, searches the collection, and returns {results: [{id, similarity, metadata}], count, collection}. Use it for vector collections; for vectors stored in SQL table columns, use query with EMBED() and COSINE_SIMILARITY(). filter keeps only results whose metadata equals the given values and is applied after the top-k search, so fewer than k results can come back. Read-only.
Inputs: collection (required), query_text (required), k, filter.
sql_manualSynapCores SQL referenceARead-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 modelADestructive
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 itARead-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
Scored across 15 tools
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.
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.
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.
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
Related MCP Connectors
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
Hosted MCP server for AI-driven data ops. Create apps, manage schemas, and CRUD structured data.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Hosted SQL Server MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseAqualityBmaintenanceZero-config MCP server that empowers AI agents to safely query SQL and NoSQL databases like PostgreSQL, MySQL, SQLite, MongoDB, and Redis.535 npm1MIT
- FlicenseAqualityBmaintenanceNatural language to SQL engine with multi-connector support (PostgreSQL, MySQL, Snowflake, BigQuery, DuckDB), document QA, semantic caching, and self-hosted MCP server.931 PyPI5-
- AlicenseBqualityCmaintenanceEnables 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.42105 npmMIT
- FlicenseNot gradedqualityBmaintenanceEnables 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-