Λογότυπο mcp-server-db

mcp-server-db

Κοινότητα
Nam088

mcp-server-db is a universal, production-grade Model Context Protocol (MCP) server that empowers AI assistants to interact with Postgres, Redis, Elasticsearch, MySQL, MongoDB, and LDAP through a…

ΕκδότηςNam088
Αποθετήριοmcp-db-server
ΓλώσσαTypeScript
Forks
87
Αστέρια
82
Διαθέσιμα εργαλεία
113
Τύπος μεταφοράςstdio
Κατηγορίες
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Συνδέστε εργαλεία σε ροές εργασίας AI

    Το mcp-server-db παρέχει δυνατότητες MCP που μπορούν να χρησιμοποιηθούν από συμβατές εφαρμογές-πελάτες AI και πράκτορες AI.

  • 113 διαθέσιμα εργαλεία

    Περιηγηθείτε παρακάτω στις ενέργειες που μπορούν να κληθούν, μαζί με τα ονόματα και τις περιγραφές τους, όταν παρέχονται από τον διακομιστή.

  • Ρυθμίσεις έτοιμες για αντιγραφή

    Χρησιμοποιήστε τα αποσπάσματα εγκατάστασης για να ρυθμίσετε αυτόν τον διακομιστή στην εφαρμογή-πελάτη MCP που προτιμάτε.

  • Δείκτες ενδιαφέροντος για τον ανοιχτό κώδικα

    82 αστέρια και 87 διακλαδώσεις στο συνδεδεμένο αποθετήριο.

mcp-server-db

npm version license node types

mcp-server-db is a universal, production-grade Model Context Protocol (MCP) server that empowers AI assistants to interact with Postgres, Redis, Elasticsearch, MySQL, MongoDB, and LDAP through a unified suite of 113+ high-performance tools.

Built with resilience in mind, it features background lazy connection management, exponential backoff retries, circuit breaker patterns, strict read-only security enforcement, and on-demand dynamic driver loading.


Why mcp-server-db?

  • Multi-Database Support: Connect to Postgres, Redis, Elasticsearch (v7, v8 & v9), MySQL, MongoDB, and LDAP directories simultaneously.
  • On-Demand Light Drivers: Zero bloat. Drivers (pg, ioredis, mongodb, mysql2, @elastic/elasticsearch, ldapts) are dynamically loaded only when a connection to that database engine is initialized.
  • Ironclad Safety: Independent per-connection read-only mode with session-level enforcement for relational databases and query result truncation guards to prevent LLM context overflows.
  • Fault-Tolerant Architecture: Server starts instantly regardless of database availability. Dead or unreachable databases fail gracefully without crashing the MCP process or blocking other connections.
  • Multi-Connection Routing: Query multiple environments (e.g., production read-only replica + local scratch cache) in parallel within the same session.

Supported Database Engines

Database EngineDefault DriverSupported VersionsKey Features & Guardrails
PostgreSQLpg (optional)10+Table/Index stats, Health diagnostics, Session-level read_only, Statement timeouts
Redisioredis (optional)5+Key/String/Hash/Set/List operations, Automatic 1000-item result truncation cap
Elasticsearch@elastic/elasticsearch / es7-client7.x, 8.x, 9.xDual-API version facade (v7 legacy & v8/v9 modern), Cluster health, Query DSL
MySQL / MariaDBmysql2 (optional)5.7+, 8.0+DDL extraction (SHOW CREATE), Processlist management, Indexes & Triggers, Session read-only
MongoDBmongodb (optional)4.4+Aggregation pipelines, Distinct queries, Index management, Execution plan explain
LDAPldapts (optional)v3 directories (OpenLDAP, AD, etc.)Search/compare, Add/modify/delete entries, Bulk entry seeding

Quick Start

1. Installation & Optional Drivers

When installed globally (npm install -g mcp-server-db) or run via npx -y mcp-server-db, npm automatically includes all supported database drivers (pg, ioredis, @elastic/elasticsearch, mysql2, mongodb, ldapts) out of the box via optionalDependencies.

bash
# Global installation (includes all drivers out of the box)
npm install -g mcp-server-db

# Local project installation
npm install mcp-server-db

If you install mcp-server-db locally using --no-optional to keep your node_modules lightweight, you can install only the specific drivers you need:

bash
# PostgreSQL
npm install pg

# Redis
npm install ioredis

# Elasticsearch
npm install @elastic/elasticsearch   # For v8 & v9
npm install es7-client               # For v7 legacy

# MySQL / MariaDB
npm install mysql2

# MongoDB
npm install mongodb

# LDAP
npm install ldapts

2. Zero-Install Execution via NPX

Add mcp-server-db directly to your MCP client config file (e.g. Claude Desktop, Claude Code, Gemini CLI, Cursor):

json
{
  "mcpServers": {
    "mcp-server-db": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "mcp-server-db"],
      "env": {
        "POSTGRES_URL": "postgresql://user:password@localhost:5432/mydb",
        "REDIS_URL": "redis://localhost:6379",
        "MONGODB_URL": "mongodb://localhost:27017",
        "LDAP_URL": "ldap://localhost:389",
        "LDAP_BIND_DN": "cn=admin,dc=example,dc=com",
        "LDAP_BIND_PASSWORD": "admin-password"
      }
    }
  }
}

3. Fast Setup with Environment Variables

Define connection strings in env to start immediately without a configuration file:

bash
POSTGRES_URL=postgresql://user:password@localhost:5432/mydb
REDIS_URL=redis://localhost:6379
ELASTICSEARCH_URL=http://localhost:9200
MYSQL_URL=mysql://user:password@localhost:3306/mydb
MONGODB_URL=mongodb://localhost:27017
LDAP_URL=ldap://localhost:389
LDAP_BIND_DN=cn=admin,dc=example,dc=com
LDAP_BIND_PASSWORD=admin-password
POSTGRES_READ_ONLY=true
REDIS_READ_ONLY=true
MYSQL_READ_ONLY=true
MONGODB_READ_ONLY=true
LDAP_READ_ONLY=true

Complete Tools Reference (113 Tools)

System & Management Tools (2)

  • db_status: Inspect connection states (idle, connecting, connected, retrying, failed, circuit_open), read-only mode, and error logs across all configured databases. Supports filtering by connectionId (or id) to check a single database, filtering by type (postgres/redis/etc.), and active live probing (probe: true) with round-trip latency measurement.
  • db_reload_config: Hot-reload databases.config.yml from disk and reconcile connections dynamically without interrupting active queries.

Postgres Tools (30)

  • pg_query: Execute read-only SELECT queries (enforces single-statement extended query protocol).
  • pg_execute_sql: Execute write SQL statements (INSERT, UPDATE, DELETE, DDL). Blocked in read-only mode.
  • pg_list_tables: List tables in a target schema.
  • pg_describe_table: Inspect column data types, ordinal position, and nullability.
  • pg_list_schemas: List all database schemas.
  • pg_list_views: List all views in a schema.
  • pg_list_indexes: List indexes and index definitions for a table.
  • pg_list_triggers: List triggers and action statements in a schema.
  • pg_table_stats: Get total size, table size, index size, and estimated row count.
  • pg_list_constraints: List primary keys, foreign keys, and check constraints.
  • pg_explain_query: Inspect query execution plans with EXPLAIN.
  • pg_active_queries: Retrieve running non-idle queries and durations from pg_stat_activity.
  • pg_list_functions: List user-defined functions, arguments, and return types.
  • pg_list_sequences: List sequence objects in a schema.
  • pg_database_info: Get database name, current user, PostgreSQL version, and database size.
  • pg_kill_query: Terminate a running backend process by PID. Blocked in read-only mode.
  • pg_vacuum_analyze: Run VACUUM ANALYZE to update statistics and reclaim dead tuples. Blocked in read-only mode.
  • pg_list_materialized_views: List materialized views in a schema.
  • pg_refresh_materialized_view: Refresh a materialized view (supports CONCURRENTLY). Blocked in read-only mode.
  • pg_index_usage: Inspect index scan counts and tuple fetch statistics.
  • pg_lock_info: Retrieve active database locks and query durations.
  • pg_get_top_queries: Get slow queries from pg_stat_statements.
  • pg_explain_hypothetical_index: Simulate hypothetical index performance using hypopg.
  • pg_database_health: Run health audit (connections utilization, buffer cache hit ratio, dead rows, replication lag).
  • pg_sizes_overview: Breakdown storage sizes for database, tables, and indexes.
  • pg_unused_indexes: Identify zero-scan candidate indexes to drop.
  • pg_duplicate_indexes: Find overlapping or redundant indexes.
  • pg_long_running_queries: Find queries exceeding a duration threshold.
  • pg_missing_indexes: Identify high-sequential-scan tables needing indexes.
  • pg_bloat_estimate: Estimate table bloat ratio based on dead tuple count.

Redis Tools (27)

  • redis_get: Get string value at key.
  • redis_set: Set key value. Blocked in read-only mode.
  • redis_mset: Set multiple key/value pairs in a single command (e.g. for seeding). Blocked in read-only mode.
  • redis_del: Delete key. Blocked in read-only mode.
  • redis_keys: List keys matching a glob pattern (capped at 1000 items).
  • redis_ttl: Get remaining TTL in seconds.
  • redis_hget: Get hash field value.
  • redis_hset: Set hash field value. Blocked in read-only mode.
  • redis_hdel: Delete hash fields. Blocked in read-only mode.
  • redis_hgetall: Get all hash fields and values.
  • redis_hexists: Check hash field existence.
  • redis_sadd: Add member to set. Blocked in read-only mode.
  • redis_srem: Remove member from set. Blocked in read-only mode.
  • redis_smembers: List set members (capped at 1000 items).
  • redis_sismember: Test set membership.
  • redis_lpush: Prepend element to list. Blocked in read-only mode.
  • redis_rpush: Append element to list. Blocked in read-only mode.
  • redis_lpop: Remove and return first list element. Blocked in read-only mode.
  • redis_rpop: Remove and return last list element. Blocked in read-only mode.
  • redis_lrange: Get range of list elements (capped at 1000 items).
  • redis_llen: Get list length.
  • redis_exists: Check key existence.
  • redis_expire: Set key expiration in seconds. Blocked in read-only mode.
  • redis_type: Retrieve data type of key.
  • redis_incr: Increment integer key. Blocked in read-only mode.
  • redis_decr: Decrement integer key. Blocked in read-only mode.
  • redis_flushdb: Clear current Redis database. Blocked in read-only mode.

Elasticsearch Tools (11)

  • es_cluster_health: Get status (green/yellow/red), node counts, and shard metrics.
  • es_list_indices: List indices, doc counts, store size, and status.
  • es_index_stats: Get detailed metrics for a specific index.
  • es_search: Execute search using Query DSL.
  • es_count: Count documents matching a query.
  • es_get_doc: Fetch document by ID.
  • es_index_doc: Index or overwrite document. Blocked in read-only mode.
  • es_bulk_index: Index multiple documents into one index in a single _bulk request, with per-document success/failure reporting (e.g. for seeding). Blocked in read-only mode.
  • es_update_doc: Partially update document fields. Blocked in read-only mode.
  • es_delete_doc: Delete document by ID. Blocked in read-only mode.
  • es_delete_by_query: Delete documents matching Query DSL. Blocked in read-only mode.

MySQL Tools (18)

  • mysql_query: Execute read-only SELECT/SHOW/EXPLAIN queries.
  • mysql_execute_sql: Execute write SQL (INSERT, UPDATE, DELETE, DDL). Blocked in read-only mode.
  • mysql_list_databases: List databases on server.
  • mysql_list_tables: List tables in database.
  • mysql_list_views: List views and security options.
  • mysql_describe_table: Show column definitions and metadata.
  • mysql_show_create_table: Extract raw CREATE TABLE DDL statement.
  • mysql_show_create_view: Extract raw CREATE VIEW DDL statement.
  • mysql_list_indexes: Show table indexes (SHOW INDEX).
  • mysql_list_triggers: List database triggers.
  • mysql_list_routines: List stored procedures and functions.
  • mysql_list_constraints: List foreign keys and constraints.
  • mysql_table_stats: Retrieve estimated rows, data length, and index size.
  • mysql_active_queries: Retrieve running threads (SHOW FULL PROCESSLIST).
  • mysql_kill_query: Kill running process by ID. Blocked in read-only mode.
  • mysql_explain_query: Analyze query execution plan (EXPLAIN).
  • mysql_global_status: Query server global status metrics.
  • mysql_analyze_table: Run ANALYZE TABLE to refresh statistics. Blocked in read-only mode.

MongoDB Tools (19)

  • mongo_list_databases: List databases on MongoDB cluster.
  • mongo_list_collections: List collections in database.
  • mongo_find: Query documents with filter, projection, sort, limit, and skip.
  • mongo_distinct: Get unique field values.
  • mongo_aggregate: Execute MongoDB aggregation pipeline.
  • mongo_count_documents: Count documents matching filter.
  • mongo_insert_one: Insert single document. Blocked in read-only mode.
  • mongo_insert_many: Insert array of documents. Blocked in read-only mode.
  • mongo_update_one: Update single document matching filter. Blocked in read-only mode.
  • mongo_update_many: Update multiple documents. Blocked in read-only mode.
  • mongo_delete_one: Delete single document. Blocked in read-only mode.
  • mongo_delete_many: Delete multiple documents. Blocked in read-only mode.
  • mongo_create_index: Create collection index. Blocked in read-only mode.
  • mongo_drop_index: Drop collection index by name. Blocked in read-only mode.
  • mongo_list_indexes: List all collection indexes.
  • mongo_db_stats: Get database storage statistics.
  • mongo_collection_stats: Get storage, index size, and object count for collection.
  • mongo_explain: Get query planner execution plan and index scan metrics.
  • mongo_server_status: Get cluster memory, connection, and operation stats.

LDAP Tools (6)

  • ldap_search: Search a directory by base DN, filter, and scope (capped at 500 entries).
  • ldap_compare: Compare an attribute/value pair against an entry.
  • ldap_add: Create a new entry. Blocked in read-only mode.
  • ldap_add_bulk: Create multiple entries in one call (e.g. for seeding), with per-entry success/failure reporting. Blocked in read-only mode.
  • ldap_modify: Add, replace, or delete an attribute's values on an entry. Blocked in read-only mode.
  • ldap_delete: Delete an entry. Blocked in read-only mode.

Multi-Connection YAML Configuration

For complex setups with multiple named databases, create config/databases.config.yml (copy config/databases.config.example.yml):

yaml
connections:
  - id: primary-pg
    type: postgres
    connectionString: ${POSTGRES_URL}
    defaultSchema: public
    statementTimeoutMs: 30000
    readOnly: true

  - id: app-cache
    type: redis
    connectionString: ${REDIS_URL}
    readOnly: false

  - id: search-logs
    type: elasticsearch
    connectionString: ${ELASTICSEARCH_URL}
    apiVersion: "9"
    readOnly: true

  - id: legacy-cluster
    type: elasticsearch
    connectionString: ${LEGACY_ELASTICSEARCH_URL}
    apiVersion: "7"
    readOnly: true

  - id: analytics-mysql
    type: mysql
    connectionString: ${MYSQL_URL}
    statementTimeoutMs: 30000
    readOnly: true

  - id: document-store
    type: mongodb
    connectionString: ${MONGODB_URL}
    defaultDatabase: production
    readOnly: true

  - id: directory
    type: ldap
    connectionString: ${LDAP_URL}
    bindDn: ${LDAP_BIND_DN}
    bindPassword: ${LDAP_BIND_PASSWORD}
    readOnly: false

Local Development & Custom Builds

1. Build and Run Locally

bash
git clone https://github.com/Nam088/mcp-database-server-v2.git
cd mcp-database-server
npm install
npm run build    # Compiles TypeScript to dist/
npm test         # Runs Vitest test suite

2. Configure Local Build in MCP Clients

json
{
  "mcpServers": {
    "mcp-server-db": {
      "type": "stdio",
      "command": "node",
      "args": ["/absolute/path/to/mcp-database-server/dist/index.js"],
      "env": {
        "DATABASES_CONFIG_PATH": "/absolute/path/to/mcp-database-server/config/databases.config.yml"
      }
    }
  }
}

3. Claude Code CLI

bash
claude mcp add --scope user mcp-server-db node /absolute/path/to/mcp-database-server/dist/index.js --env DATABASES_CONFIG_PATH=/absolute/path/to/mcp-database-server/config/databases.config.yml

Client Config Paths

  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Claude Code (Global): ~/.claude.json
  • Gemini CLI / IDE: ~/.gemini/config/mcp_config.json
  • Cursor / Project Root: .mcp.json

License

Distributed under the MIT License. See LICENSE for details.

Εγκατάσταση

TypingMind
{
  "mcpServers": {
    "mcp-db-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-db"
      ],
      "env": {
        "POSTGRES_URL": "<POSTGRES_URL>",
        "REDIS_URL": "<REDIS_URL>",
        "ELASTICSEARCH_URL": "<ELASTICSEARCH_URL>",
        "MYSQL_URL": "<MYSQL_URL>",
        "MONGODB_URL": "<MONGODB_URL>",
        "LDAP_URL": "<LDAP_URL>",
        "LDAP_BIND_DN": "<LDAP_BIND_DN>",
        "LDAP_BIND_PASSWORD": "<LDAP_BIND_PASSWORD>"
      }
    }
  }
}

Διαθέσιμα εργαλεία

  • db_status

    List the live connection state of every configured database (postgres/redis/elasticsearch), including state, readOnly mode, last error, and next retry time.

  • db_reload_config

    Reload the databases.config.yml configuration file from disk, recreate connections, and reconnect.

  • pg_query

    Run a read-only SELECT query against a configured Postgres connection.

  • pg_execute_sql

    Run any SQL statement (INSERT/UPDATE/DELETE/DDL) against a configured Postgres connection. Blocked when that connection's own readOnly mode is enabled.

  • pg_list_tables

    List all tables in the specified schema of a configured Postgres connection.

  • pg_describe_table

    Describe the columns of a table in the specified schema of a configured Postgres connection.

  • pg_list_schemas

    List all database schemas.

  • pg_list_views

    List all views in the specified schema.

  • pg_list_indexes

    List all indexes for a given table in the specified schema.

  • pg_list_triggers

    List all triggers in the specified schema.

  • pg_table_stats

    Get statistics for a given table in the specified schema, including table size, index size, and estimated row count.

  • pg_list_constraints

    List constraints (foreign keys, primary keys, check constraints) on a table in the specified schema.

  • pg_explain_query

    Run EXPLAIN on a read-only SELECT query to analyze query performance.

  • pg_active_queries

    Get active queries currently running on the server.

  • pg_list_functions

    List all user-defined functions in the specified schema.

  • pg_list_sequences

    List all sequences in the specified schema.

  • pg_database_info

    Get metadata and size information about the current database.

  • pg_kill_query

    Terminate an active query by PID. Blocked when that connection's own readOnly mode is enabled.

  • pg_vacuum_analyze

    Run VACUUM ANALYZE on a table to clean dead tuples and update database statistics. Blocked when that connection's own readOnly mode is enabled.

  • pg_list_materialized_views

    List all materialized views in the specified schema.

  • pg_refresh_materialized_view

    Refresh a materialized view. Blocked when that connection's own readOnly mode is enabled.

  • pg_index_usage

    Retrieve index usage statistics for all user tables in the specified schema.

  • pg_lock_info

    Get active lock information from the database catalog.

  • pg_get_top_queries

    Get the slowest SQL queries based on execution time from pg_stat_statements (if the extension is enabled).

  • pg_explain_hypothetical_index

    Explain a query's execution plan simulating hypothetical indexes using the hypopg extension (if installed).

  • pg_database_health

    Get a comprehensive database health report (connections, buffer cache, invalid indexes, dead rows, and replication).

  • pg_sizes_overview

    Get size statistics for the database and all tables/indexes in a schema.

  • pg_unused_indexes

    Find indexes that have never been used (zero scans since last stats reset). Great for identifying candidates to DROP to save space and reduce write overhead.

  • pg_duplicate_indexes

    Find redundant indexes where one index's leading columns are a subset of another, making the smaller one unnecessary.

  • pg_long_running_queries

    Find queries that have been running longer than a given threshold in seconds.

  • pg_missing_indexes

    Find tables that have high sequential scan counts relative to index scans, suggesting they might benefit from new indexes.

  • pg_bloat_estimate

    Estimate table and index bloat using pg_stat_user_tables statistics (dead tuples vs live tuples ratio). Returns tables where dead tuple ratio exceeds a threshold.

  • redis_get

    Get the value stored at a Redis key.

  • redis_set

    Set a Redis key to a value. Blocked when that connection's own readOnly mode is enabled.

  • redis_mset

    Set multiple string keys to their values in a single command (e.g. for seeding test/sample data) — far more efficient than one redis_set call per key. Blocked when that connection's own readOnly mode is enabled.

  • redis_del

    Delete a Redis key. Blocked when that connection's own readOnly mode is enabled.

  • redis_keys

    List Redis keys matching a glob pattern (e.g. 'user:*'). Capped at 1000 keys; result is truncated=true with a total count if there are more.

  • redis_ttl

    Get the remaining time to live (in seconds) of a Redis key, or -1 if it has none.

  • redis_hget

    Get the value of a hash field.

  • redis_hset

    Set the value of a hash field. Blocked when that connection's own readOnly mode is enabled.

  • redis_hdel

    Delete one or more hash fields. Blocked when that connection's own readOnly mode is enabled.

  • redis_hgetall

    Get all fields and values of a hash.

  • redis_hexists

    Check if a hash field exists.

  • redis_sadd

    Add a member to a set. Blocked when that connection's own readOnly mode is enabled.

  • redis_srem

    Remove a member from a set. Blocked when that connection's own readOnly mode is enabled.

  • redis_smembers

    Get all members of a set. Capped at 1000 members; result is truncated=true with a total count if there are more.

  • redis_sismember

    Check if a value is a member of a set.

  • redis_lpush

    Prepend a value to a list. Blocked when that connection's own readOnly mode is enabled.

  • redis_rpush

    Append a value to a list. Blocked when that connection's own readOnly mode is enabled.

  • redis_lpop

    Remove and return the first element of a list. Blocked when that connection's own readOnly mode is enabled.

  • redis_rpop

    Remove and return the last element of a list. Blocked when that connection's own readOnly mode is enabled.

  • redis_lrange

    Get a range of elements from a list. Capped at 1000 elements; result is truncated=true with a total count if there are more.

  • redis_llen

    Get the length of a list.

  • redis_exists

    Check key existence.

  • redis_expire

    Set a key's time to live in seconds. Blocked when that connection's own readOnly mode is enabled.

  • redis_type

    Retrieve the internal data type of a key.

  • redis_incr

    Increment the integer value of a key. Blocked when that connection's own readOnly mode is enabled.

  • redis_decr

    Decrement the integer value of a key. Blocked when that connection's own readOnly mode is enabled.

  • redis_flushdb

    Delete all keys from the current database. Blocked when that connection's own readOnly mode is enabled.

  • es_cluster_health

    Get Elasticsearch cluster health: status (green/yellow/red), node count, and shard counts.

  • es_list_indices

    List all indices with document count, size, and health status.

  • es_index_stats

    Get stats (doc count, store size, segments) for a specific index.

  • es_search

    Run a search query against an index using Elasticsearch Query DSL.

  • es_count

    Count documents in an index matching a query (or all documents if no query is given).

  • es_get_doc

    Get a document by id from an index.

  • es_index_doc

    Index (create or overwrite) a document. Blocked when that connection's own readOnly mode is enabled.

  • es_bulk_index

    Index (create or overwrite) multiple documents into one index in a single request via the Elasticsearch _bulk API (e.g. for seeding test/sample data) — far more efficient than one es_index_doc call per document. Reports per-document success/failure rather than aborting the whole batch on one bad document. Blocked when that connection's own readOnly mode is enabled.

  • es_update_doc

    Partially update a document by id. Blocked when that connection's own readOnly mode is enabled.

  • es_delete_doc

    Delete a document by id. Blocked when that connection's own readOnly mode is enabled.

  • es_delete_by_query

    Delete all documents in an index matching a query. Blocked when that connection's own readOnly mode is enabled.

  • mysql_query

    Run a read-only SELECT/SHOW/EXPLAIN query against a configured MySQL connection.

  • mysql_execute_sql

    Run any SQL statement (INSERT/UPDATE/DELETE/DDL) against a configured MySQL connection. Blocked when readOnly mode is enabled.

  • mysql_list_databases

    List all databases on a MySQL connection.

  • mysql_list_tables

    List tables in a MySQL database.

  • mysql_list_views

    List views in a MySQL database.

  • mysql_describe_table

    Show column definitions and metadata for a MySQL table.

  • mysql_show_create_table

    Get the exact CREATE TABLE DDL statement for a MySQL table.

  • mysql_show_create_view

    Get the exact CREATE VIEW DDL statement for a MySQL view.

  • mysql_list_indexes

    Show all indexes for a specified MySQL table.

  • mysql_list_triggers

    List triggers in a MySQL database.

  • mysql_list_routines

    List stored procedures and functions in a MySQL database.

  • mysql_list_constraints

    List table constraints and foreign keys in a MySQL database.

  • mysql_table_stats

    Get size, row count estimates, and index sizes for tables in a MySQL database.

  • mysql_active_queries

    List currently running queries and processes in MySQL.

  • mysql_kill_query

    Kill a running query or connection thread by ID in MySQL. Blocked when readOnly mode is enabled.

  • mysql_explain_query

    Get the execution plan for a MySQL query.

  • mysql_global_status

    Show server status variables in MySQL.

  • mysql_analyze_table

    Analyze key distribution for a MySQL table. Blocked when readOnly mode is enabled.

  • mongo_list_databases

    List all databases in MongoDB.

  • mongo_list_collections

    List all collections in a MongoDB database.

  • mongo_find

    Query documents from a MongoDB collection.

  • mongo_distinct

    Find distinct values for a specified field in a MongoDB collection.

  • mongo_aggregate

    Run an aggregation pipeline on a MongoDB collection.

  • mongo_count_documents

    Count documents matching a filter in a MongoDB collection.

  • mongo_insert_one

    Insert a single document into a MongoDB collection. Blocked when readOnly mode is enabled.

  • mongo_insert_many

    Insert multiple documents into a MongoDB collection. Blocked when readOnly mode is enabled.

  • mongo_update_one

    Update a single document matching filter in MongoDB. Blocked when readOnly mode is enabled.

  • mongo_update_many

    Update multiple documents matching filter in MongoDB. Blocked when readOnly mode is enabled.

  • mongo_delete_one

    Delete a single document matching filter in MongoDB. Blocked when readOnly mode is enabled.

  • mongo_delete_many

    Delete multiple documents matching filter in MongoDB. Blocked when readOnly mode is enabled.

  • mongo_create_index

    Create an index on a MongoDB collection. Blocked when readOnly mode is enabled.

  • mongo_drop_index

    Drop an index by name on a MongoDB collection. Blocked when readOnly mode is enabled.

  • mongo_list_indexes

    List all indexes on a MongoDB collection.

  • mongo_db_stats

    Get statistics for a MongoDB database.

  • mongo_collection_stats

    Get detailed storage, index size, and document count statistics for a MongoDB collection.

  • mongo_explain

    Get execution plan and index scan statistics for a MongoDB find query.

  • mongo_server_status

    Get MongoDB server status (connections, memory, uptime, operations).

  • ldap_search

    Search an LDAP directory. Returns matching entries (capped at 500; result is truncated=true with a total count if there are more).

  • ldap_compare

    Compare an attribute/value pair against an LDAP entry. Returns true if they match.

  • ldap_add

    Create a new LDAP entry. Blocked when that connection's own readOnly mode is enabled.

  • ldap_add_bulk

    Create multiple LDAP entries in one call (e.g. for seeding test/sample data). LDAP has no native multi-entry add operation, so this adds each entry sequentially and reports per-entry success/failure rather than aborting on the first error — a bad entry never blocks the rest of the batch. Blocked when that connection's own readOnly mode is enabled.

  • ldap_modify

    Add, replace, or delete a single attribute's values on an existing LDAP entry. Blocked when that connection's own readOnly mode is enabled.

  • ldap_delete

    Delete an LDAP entry. Blocked when that connection's own readOnly mode is enabled.

Χρησιμοποιήστε το MCP mcp-server-db με πολλά μοντέλα AI

Το TypingMind συνδέει τα εργαλεία MCP σε επίπεδο χώρου εργασίας. Έτσι, μόλις συνδεθεί το mcp-server-db, μπορείτε να το χρησιμοποιείτε με διαφορετικά μοντέλα AI στο TypingMind, αντί να το ρυθμίζετε ξεχωριστά για κάθε μοντέλο. Αυτή η ενσωμάτωση MCP εκτελείται τοπικά στη συσκευή σας μέσω του συνδέσμου MCP του TypingMind.

Οδηγός ρύθμισης για τη χρήση του τοπικού συνδέσμου

Επιλέξτε αυτή τη μέθοδο όταν ο διακομιστής MCP χρειάζεται πρόσβαση σε τοπικά αρχεία, εφαρμογές ή ιδιωτικούς πόρους στον υπολογιστή σας.

1

Ανοίξτε τις ρυθμίσεις MCP

Στο TypingMind, μεταβείτε στις «Ρυθμίσεις», έπειτα στις «Σύνθετες ρυθμίσεις» και στο «Model Context Protocol» και επιλέξτε «Ρύθμιση συνδέσμου».

  1. Ανοίξτε το TypingMind στο πρόγραμμα περιήγησής σας.
  2. Κάντε κλικ στο εικονίδιο «Ρυθμίσεις».
  3. Μεταβείτε στις «Σύνθετες ρυθμίσεις».
  4. Ανοίξτε την ενότητα Model Context Protocol.
  5. Κάντε κλικ στην επιλογή «Ρύθμιση συνδέσμου» και επιλέξτε «Αυτή η συσκευή».
Οθόνη ρύθμισης συνδέσμου MCP του TypingMind με επιλεγμένη την επιλογή «Αυτή η συσκευή»
2

Εκτελέστε την εντολή του συνδέσμου

Επιλέξτε «Αυτή η συσκευή», αντιγράψτε την εντολή από το TypingMind και εκτελέστε την στο Τερματικό. Διατηρήστε τη διεργασία σε λειτουργία όσο χρησιμοποιείτε το MCP.

  1. Αντιγράψτε την εντολή ρύθμισης που εμφανίζεται στο TypingMind.
  2. Ανοίξτε το Τερματικό στο macOS ή το Windows Terminal στα Windows.
  3. Επικολλήστε και εκτελέστε την εντολή.
  4. Εγκρίνετε την εγκατάσταση του πακέτου, αν το Τερματικό σάς ζητήσει επιβεβαίωση για να συνεχίσει.
  5. Διατηρήστε ανοιχτό το παράθυρο του Τερματικού και τη διεργασία σε λειτουργία όσο χρησιμοποιείτε εργαλεία MCP.
3

Προσθέστε το mcp-server-db ως διακομιστή

Όταν η κατάσταση του συνδέσμου είναι «Έτοιμος», κάντε κλικ στο «Αλλαγή servers» και επικολλήστε τις ρυθμίσεις του διακομιστή MCP.

  1. Περιμένετε μέχρι η κατάσταση του συνδέσμου να εμφανιστεί ως «Έτοιμος».
  2. Κάντε κλικ στο «Αλλαγή servers».
  3. Επικολλήστε τις ρυθμίσεις του διακομιστή MCP mcp-server-db.
  4. Αποθηκεύστε τη λίστα διακομιστών.
  5. Κάντε ανανέωση αν θέλετε να επιβεβαιώσετε ότι ο σύνδεσμος παραμένει έτοιμος για χρήση.
Ρυθμίσεις MCP του TypingMind με ενεργό διακομιστή και το κουμπί «Αλλαγή servers»
{
  "mcpServers": {
    "mcp-db-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-db"
      ]
    }
  }
}
4

Χρησιμοποιήστε τη σύνδεση με διαφορετικά μοντέλα

Αποθηκεύστε τη λίστα διακομιστών, ανοίξτε τα «Πρόσθετα», ενεργοποιήστε τα εργαλεία MCP του mcp-server-db και έπειτα επιλέξτε οποιοδήποτε υποστηριζόμενο μοντέλο AI στο TypingMind. Χρησιμοποιήστε τα εργαλεία στη συνομιλία ή αναθέστε τα σε έναν πράκτορα AI.

  1. Ανοίξτε τη σελίδα «Πρόσθετα» στο TypingMind.
  2. Ενεργοποιήστε τα εργαλεία MCP του mcp-server-db.
  3. Ξεκινήστε μια συνομιλία και επιλέξτε το μοντέλο AI που θέλετε να χρησιμοποιήσετε.
  4. Χρησιμοποιήστε τα εργαλεία MCP στη συνομιλία ή αντιστοιχίστε τα σε έναν πράκτορα AI.
  5. Μεταβείτε σε άλλο μοντέλο AI όποτε χρειάζεται, χωρίς να συνδέσετε ξανά το MCP.
Συνομιλία στο TypingMind με ενεργοποιημένα εργαλεία MCP και επιλεγμένο μοντέλο AI
Θα με βοηθήσετε σε αυτό μέσω mcp-server-db;
mcp-server-db
Βεβαίως. Το διάβασα.
Δείτε τι βρήκα μέσω του mcp-server-db.

Συχνές ερωτήσεις

Σε τι χρησιμεύει ο διακομιστής MCP mcp-server-db;

Το mcp-server-db είναι ένας διακομιστής MCP που επιτρέπει σε συμβατές εφαρμογές AI να συνδέονται με εξωτερικά εργαλεία και πληροφορίες πλαισίου. Στο TypingMind, μπορείτε να προσθέσετε αυτόν τον διακομιστή MCP μία φορά και να κάνετε τα εργαλεία του διαθέσιμα στον χώρο εργασίας AI σας.

Μπορώ να χρησιμοποιήσω το mcp-server-db MCP με πολλά μοντέλα AI στο TypingMind;

Ναι. Το TypingMind συνδέει τα εργαλεία MCP σε επίπεδο χώρου εργασίας, ώστε να μπορείτε να χρησιμοποιείτε το mcp-server-db με διαφορετικά μοντέλα AI, όπως τα Claude, ChatGPT, Gemini ή άλλα μοντέλα που έχετε ρυθμίσει στο TypingMind, χωρίς να ρυθμίζετε τον διακομιστή MCP ξεχωριστά για κάθε μοντέλο.

Γιατί να χρησιμοποιήσετε τον σύνδεσμο MCP mcp-server-db με το TypingMind;

Το TypingMind είναι ένα από τα καλύτερα περιβάλλοντα συνομιλίας με μεγάλα γλωσσικά μοντέλα, καθώς συγκεντρώνει πολλά μοντέλα AI, προτροπές, πρόσθετα, πράκτορες AI, κλειδιά API και εργαλεία MCP σε έναν χώρο εργασίας. Συνδέοντας το mcp-server-db, μπορείτε να χρησιμοποιείτε τα εργαλεία MCP του με τα μοντέλα που προτιμάτε, διατηρώντας οργανωμένη τη ροή εργασίας των συνομιλιών σας στο TypingMind.

Πώς συνδέω το mcp-server-db MCP στο TypingMind;

Το mcp-server-db λειτουργεί μέσω του τοπικού συνδέσμου MCP του TypingMind. Αυτή είναι η καλύτερη επιλογή όταν ο διακομιστής MCP χρειάζεται πρόσβαση σε τοπικά αρχεία, εφαρμογές υπολογιστή, εργαλεία γραμμής εντολών ή ιδιωτικούς πόρους στον υπολογιστή σας.

Ποια εργαλεία παρέχει το mcp-server-db MCP στο TypingMind;

Το mcp-server-db διαθέτει 113 εργαλεία MCP που μπορείτε να ενεργοποιήσετε από τη σελίδα Πρόσθετα του TypingMind και να χρησιμοποιήσετε σε συνομιλίες ή να αναθέσετε σε πράκτορες AI.

Χρειάζεται να κοινοποιήσω τα κλειδιά API μου στο TypingMind για να χρησιμοποιήσω το mcp-server-db MCP;

Όχι. Το TypingMind δίνει προτεραιότητα στην τοπική λειτουργία και σας επιτρέπει να διατηρείτε τον έλεγχο των παρόχων μοντέλων, των κλειδιών API, των προτροπών και των ρυθμίσεων MCP σας. Αν το mcp-server-db απαιτεί έλεγχο ταυτότητας, προσθέστε τις απαιτούμενες κεφαλίδες, τις ρυθμίσεις OAuth ή τις τοπικές ρυθμίσεις για τον συγκεκριμένο διακομιστή MCP κατά τη δημιουργία της σύνδεσης.

Σχετικοί διακομιστές MCP

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇