数据库 · 开发者工具

MongoDB Lens logo

MongoDB Lens

furey/mongodb-lens

MongoDB Lens是一个本地MCP服务器,通过自然语言与LLM交互实现对MongoDB数据库的全面操作,包括查询、聚合、性能优化等。

安装

npx -y mongodb-lens

客户端配置

{
  "mcpServers": {
    "mongodb-lens": {
      "command": "/path/to/npx",
      "args": [
        "-y",
        "mongodb-lens@latest",
        "mongodb://your-connection-string"
      ]
    }
  }
}

环境变量

CONFIG_PATHCONFIG_DISABLE_DESTRUCTIVE_OPERATION_TOKENS
GitHub 星标
117
作者
@furey
分类
数据库, 开发者工具
许可证
MIT
更新于
2026年10月6日

工具(40)

  • add-connection-alias

    Add a new MongoDB connection alias

  • aggregate-data

    Execute aggregation pipelines

  • analyze-query-patterns

    Analyze live queries and suggest optimizations

  • analyze-schema

    Automatically infer collection schemas

  • bulk-operations

    Perform multiple operations efficiently (requires confirmation for destructive operations)

  • clear-cache

    Clear memory caches to ensure fresh data

  • collation-query

    Find documents with language-specific collation rules

  • compare-schemas

    Compare schemas between two collections

  • connect-mongodb

    Connect to a different MongoDB URI

  • connect-original

    Connect back to the original MongoDB URI used at startup

  • count-documents

    Count documents matching specified criteria

  • create-collection

    Create new collections with custom options

  • create-database

    Create a new database with option to switch to it

  • create-index

    Create new indexes for performance optimization

  • create-timeseries

    Create time series collections for temporal data

  • create-user

    Create new database users with specific roles

  • current-database

    Show the current database context

  • delete-document

    Delete documents matching specified criteria (requires confirmation)

  • distinct-values

    Extract unique values for any field

  • drop-collection

    Remove collections from the database (requires confirmation)

  • drop-database

    Drop a database (requires confirmation)

  • drop-index

    Remove indexes from collections (requires confirmation)

  • drop-user

    Remove database users (requires confirmation)

  • explain-query

    Analyze query execution plans

  • export-data

    Export query results in JSON or CSV format

  • find-documents

    Run queries with filters, projections, and sorting

  • generate-schema-validator

    Generate JSON Schema validators

  • geo-query

    Perform geospatial queries with various operators

  • get-stats

    Retrieve database or collection statistics

  • gridfs-operation

    Manage large files with GridFS buckets

  • insert-document

    Insert one or more documents into collections

  • list-collections

    Explore collections in the current database

  • list-connections

    View all available MongoDB connection aliases

  • list-databases

    View all accessible databases

  • rename-collection

    Rename existing collections (requires confirmation when dropping targets)

  • shard-status

    View sharding configuration for databases and collections

  • text-search

    Perform full-text search across text-indexed fields

  • transaction

    Execute multiple operations in a single ACID transaction

  • update-document

    Update documents matching specified criteria

  • use-database

    Switch to a specific database context

本页信息摘自该项目的 README。 查看 README

支持的客户端

该服务器 README 中提到的客户端:

查看全部
Claude Desktop logo

Claude Desktop

桌面端 · 免费增值 · Proprietary

Anthropic 官方推出的 Claude AI 桌面应用程序。支持 MCP 服务器以扩展功能。

WindowsMacOS
Cursor logo

Cursor

桌面端 · 免费增值 · Proprietary

首个代理式 IDE。Cursor 编辑器让开发者与 AI 的工作真正融合在一起,提供如魔法般的编码体验。

WindowsMacOSLinux

相关 MCP 服务器

更多服务器
Supabase MCP logo

Supabase MCP

supabase-community/supabase-mcp

1.3k

Supabase MCP Server是一个连接Supabase项目与AI助手的工具,通过Model Context Protocol(MCP)标准化大型语言模型(LLMs)与外部服务的交互,实现数据库管理、配置获取和数据查询等功能。

数据库
Genai Toolbox logo

Genai Toolbox

googleapis/genai-toolbox

769

MCP Toolbox for Databases是一个开源数据库MCP服务器,专注于企业级和生产质量,简化工具开发,提供连接池、认证等复杂功能。

数据库
Supabase MCP Server logo

Supabase MCP Server

alexander-zuev/supabase-mcp-server

677

Supabase MCP服务器是一个开源工具,允许IDE安全执行SQL、管理模式变更、调用Supabase管理API和使用Auth Admin SDK,内置安全控制。

数据库
Awesome MCP List logo

Awesome MCP List

MobinX/awesome-mcp-list

645

这是一个持续更新的MCP服务器精选列表,涵盖了浏览器控制、艺术与文化、云平台、命令行、通信、客户数据平台、数据库、开发者工具、数据科学工具、文件系统、金融与金融科技、游戏、知识与记忆、位置服务、营销、监控、搜索和实用工具等多个类别。每个项目都附带了GitHub链接和星标数量,方便用户快速了解和使用。

数据库
PostgreSQL Model Context Protocol (PG MCP) Server logo

PostgreSQL Model Context Protocol (PG MCP) Server

stuzero/pg-mcp-server

440

PG-MCP是一个为PostgreSQL数据库设计的模型上下文协议服务器,提供AI代理发现、连接、查询和理解数据库的API,支持多数据库连接、丰富的目录信息和查询解释功能。

数据库
dbhub logo

dbhub

bytebase/dbhub

332

DBHub是一个实现模型上下文协议(MCP)的通用数据库网关,支持多种数据库连接和操作。

数据库