mongodb — плагин для Claude Code: что делает и как установить
Плагин подключает Claude Code к MongoDB через локальный MCP-сервер. Он помогает изучать данные, писать запросы и настраивать индексы.
/plugin install mongodb@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-community
/plugin install mongodb@claude-community
/plugin marketplace add anthropics/claude-plugins-officialЧто делает mongodb
Плагин подключает Claude Code к MongoDB через строку подключения. Локальный MCP-сервер запускается через npx и даёт агенту инструменты для просмотра баз и коллекций, выполнения запросов и агрегаций, а также управления индексами. Поддерживаются Community, Enterprise Advanced, локальный контейнер разработки и Atlas cluster.
В комплект входят скиллы для настройки MCP и клиентских подключений, генерации запросов find и aggregation pipelines по описанию на естественном языке, диагностики медленных запросов и подбора индексов. Отдельные скиллы помогают проектировать схему, оценивать влияние Queryable Encryption, собирать Atlas Search и Vector Search, а также управлять Atlas Stream Processing.
Для подключения нужна строка подключения MongoDB и переменные окружения. Скилл оценки размера для Queryable Encryption не применяется к коллекциям с Client-Side Field Level Encryption.
Какие задачи решает
- подключить Claude Code к базе MongoDB
- исследовать коллекции и выполнить агрегацию
- найти причину медленного запроса
- подобрать индексы для запроса
- спроектировать схему MongoDB вместо SQL-модели
Примеры запросов агенту
- Настрой подключение к MongoDB через MCP и проверь строку подключения.
- Составь read-only
findзапрос для поиска заказов по статусу и дате. - Разбери медленный запрос и предложи подходящие индексы.
Как установить mongodb
Через маркетплейс плагинов
/plugin install mongodb@claude-plugins-official/plugin marketplace add anthropics/claude-plugins-community/plugin install mongodb@claude-community/plugin marketplace add anthropics/claude-plugins-officialПо шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой
Вопросы о mongodb
Как установить mongodb в Claude Code?
Добавьте официальный marketplace командой /plugin marketplace add anthropics/claude-plugins-official, затем установите плагин: /plugin install mongodb@claude-plugins-official.
Что делает плагин mongodb?
Он подключает Claude Code к MongoDB через локальный MCP-сервер, чтобы агент мог изучать базы и коллекции, выполнять запросы и агрегации и управлять индексами.
Что нужно для подключения MongoDB?
Нужна строка подключения MongoDB и переменные окружения для настройки MCP-сервера. Сервер запускается локально через npx.
Исходный текст
mongodb · Apache-2.0
# MongoDB (Self-Managed MCP) For deployments you manage yourself — **Community**, **Enterprise Advanced**, a local dev container, or an Atlas cluster — this plugin connects your agent using nothing more than a connection string. It runs the [MongoDB MCP server](https://www.mongodb.com/docs/mcp-server/) locally via `npx`, giving your agent tools to explore databases and collections, run queries and aggregations, and manage indexes. To get started, see the [Community & Enterprise Advanced setup guide](../../README.community.md). ## Skills These skills come bundled with the plugin and activate automatically when relevant: - **`mongodb-mcp-setup`** — Walks you through configuring the MCP server's connection string and environment variables. - **`mongodb-connection`** — Reviews and tunes client connection configuration (pools, timeouts, patterns) across driver languages. - **`mongodb-natural-language-querying`** — Turns natural-language requests into read-only `find` queries and aggregation pipelines. - **`mongodb-qe-size-estimation`** — Estimates the storage and memory impact of encrypting fields in collections with Queryable Encryption (QE) enabled. Doesn't apply to collections that use Client-Side Field Level Encryption (CSFLE). - **`mongodb-query-optimizer`** — Diagnoses slow queries and recommends indexes to fix them. - **`mongodb-schema-design`** — Applies MongoDB schema design patterns and steers you clear of common anti-patterns, whether modeling from scratch or migrating from SQL. - **`mongodb-search-and-ai`** — Helps build Atlas Search (full-text), Vector Search (semantic), and hybrid search implementations. - **`mongodb-atlas-stream-processing`** — Manages Atlas Stream Processing workspaces, connections, and processors for streaming workloads.
© mongodb · Apache-2.0 · mongodb/agent-skills