NeuronDB Ecosystem logo

NeuronDB Ecosystem

Community
neurondb

NeuronDB PostgreSQL extension: vector similarity search (HNSW, IVFFlat), embeddings, kNN, ML in SQL, and hybrid full-text + vector retrieval.

Publisherneurondb
Repositoryneurondb
LanguageC
Forks
10
Stars
51
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    NeuronDB Ecosystem exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    51 stars and 10 forks from the linked repository.

NeuronDB - AI Database Extension for PostgreSQL

PostgreSQL extension for vector similarity search (HNSW, IVFFlat), kNN, embeddings, machine learning, and hybrid full-text + vector search in SQL

PostgreSQL Version License Documentation


Run the system in 5 minutes

From the repository root:

bash
docker compose -f docker/docker-compose.yml up -d neurondb
docker compose -f docker/docker-compose.yml ps   # wait until healthy
docker compose -f docker/docker-compose.yml exec neurondb psql -U neurondb -d neurondb -c "CREATE EXTENSION IF NOT EXISTS neurondb; SELECT neurondb.version();"

Then run your first vector search: Simple Start or Quick Start.

Table of Contents


Overview

Vectors, embeddings, and ML—inside PostgreSQL. NeuronDB keeps similarity search and models on your live rows, not in a separate database you have to sync and babysit.

HNSW · IVFFlat · kNN · hybrid full-text + vector · RAG pieces · train & predict in SQL—all first-class in the engine.

One extension: same Postgres backups, HA, and security. Start with CREATE EXTENSION neurondb;, then index and query from SQL.

Key Capabilities

CategoryDetails
Vector typesvector, vectorp, vecmap, vgraph, rtext, halfvec, binaryvec, sparsevec (8 types)
Index access methodsHNSW and IVF only. PQ and OPQ are quantization (codebook training), not separate index types. Hybrid and multi-vector search are query-level functions.
Distance metricsL2, cosine, inner product, L1, Hamming, Jaccard, and others
ML25+ algorithm families (train/predict/evaluate): linear regression, XGBoost, LightGBM, CatBoost, K-Means, etc.
SQL~650+ functions and operators (vector, ML, embeddings, RAG, indexing). See FEATURES.md and SQL API.
GPUCUDA, ROCm, Metal (distance and search; index build is CPU only). See GPU feature matrix.
Background workersneuranq, neuranmon, neurandefrag, neuranllm

Performance Metrics

NeuronDB provides significant performance improvements over standard PostgreSQL extensions:

Index Build Performance:

The index build time for HNSW follows the relationship:

$$T_{build} = O(N \cdot \log N \cdot m \cdot ef_{construction})$$

Where:

  • $N$ = number of vectors
  • $m$ = number of connections per node (typically 16-32)
  • $ef_{construction}$ = size of candidate list during construction (typically 64-200)

Query Performance:

Query latency for HNSW search:

$$T_{query} = O(\log N + ef_{search} \cdot k)$$

Where:

  • $ef_{search}$ = size of candidate list during search (typically 40-200)
  • $k$ = number of results requested

Throughput Calculation:

$$QPS = \frac{1}{T_{query}} = \frac{1}{O(\log N + ef_{search} \cdot k)}$$

[!TIP] For optimal performance, tune ef_search based on your recall requirements. Higher values improve recall but increase latency.

Documentation

Getting Started

Vector Search & Indexing

ML Algorithms & Analytics

ML & Embeddings

Hybrid Search & Retrieval

Reranking

RAG Pipeline

Background Workers

GPU Acceleration

Performance & Security

Configuration & Operations

Official Documentation

https://www.neurondb.ai/docs — API reference (~650+ SQL functions), tutorials, deployment, and troubleshooting.

Architecture

NeuronDB follows PostgreSQL's architectural patterns and extends the database with AI capabilities.

System Architecture

Vector Query Flow

HNSW Index Structure

[!NOTE] HNSW creates a multi-layer graph where higher layers have fewer nodes and longer edges, enabling fast approximate nearest neighbor search. The search starts at the top layer and navigates down to find the closest neighbors.

Compatibility

PostgreSQLStatusPlatformsArchitectures
16.x✅ SupportedUbuntu 20.04/22.04, Debian 11/12, Rocky Linux 8/9, macOS 13+linux/amd64, linux/arm64, darwin/arm64
17.x✅ SupportedUbuntu 20.04/22.04, Debian 11/12, Rocky Linux 8/9, macOS 13+linux/amd64, linux/arm64, darwin/arm64
18.x✅ SupportedUbuntu 20.04/22.04, Debian 11/12, Rocky Linux 8/9, macOS 13+linux/amd64, linux/arm64, darwin/arm64

[!NOTE] NeuronDB supports PostgreSQL 16, 17, and 18. The extension validates the PostgreSQL version at creation time. GPU acceleration requires platform-specific drivers (CUDA 12.2+, ROCm 5.7+, or macOS 13+ for Metal).

Support & Community

ResourceLinkDescription
GitHub IssuesReport IssuesBug reports and feature requests
GitHub DiscussionsJoin DiscussionCommunity Q&A and discussions
Email Supportsupport@neurondb.aiDirect email support
Security Issuessecurity@neurondb.aiReport security vulnerabilities
Documentationneurondb.ai/docsComplete documentation

Contributing

We welcome contributions. See CONTRIBUTING.md for:

  • ✅ Code style guidelines - Follow PostgreSQL coding standards
  • ✅ Development workflow - Fork, branch, test, submit PR
  • ✅ Testing requirements - All changes must include tests
  • ✅ Pull request process - Review and approval workflow
  • ✅ Documentation - Update docs for new features

License

NeuronDB is released under a proprietary license. See LICENSE for details.

Usage TypePermittedNotes
Personal Use✅ YesBinary code only
Commercial Use❌ NoContact for licensing
Source Modifications❌ NoNo derivatives allowed
Redistribution❌ NoContact for distribution rights

For commercial licensing, contact support@neurondb.ai

Authors

neurondb, Inc.
Email: support@neurondb.ai
Website: https://neurondb.ai/docs


Documentation • Full Documentation • GitHub • Support

⬆ Back to Top

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "neurondb-neurondb": {
      "command": "npx",
      "args": [
        "-y",
        "neurondb"
      ]
    }
  }
}

Use NeuronDB Ecosystem MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once NeuronDB Ecosystem is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add NeuronDB Ecosystem as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the NeuronDB Ecosystem MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "neurondb-neurondb": {
      "command": "npx",
      "args": [
        "-y",
        "neurondb"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the NeuronDB Ecosystem MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the NeuronDB Ecosystem MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use NeuronDB Ecosystem to help me with this task?
NeuronDB Ecosystem
Sure. I read it.
Here is what I found using NeuronDB Ecosystem.

Frequently asked questions

What is the NeuronDB Ecosystem MCP server used for?

NeuronDB Ecosystem is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use NeuronDB Ecosystem MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use NeuronDB Ecosystem with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use NeuronDB Ecosystem MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With NeuronDB Ecosystem connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect NeuronDB Ecosystem MCP to TypingMind?

NeuronDB Ecosystem runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does NeuronDB Ecosystem MCP provide in TypingMind?

NeuronDB Ecosystem exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use NeuronDB Ecosystem MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If NeuronDB Ecosystem requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇