MCP Server Policy

MONGODB MCP POLICY

Enforce policies on every tool call to the MongoDB MCP Server. 36 tools listed, categorised, and ready for rules.

mongodb-js/mongodb-mcp-server 9 read 27 write 36 tools total
mongodb database nosql atlas aggregation

GET STARTED

Download this policy scaffold and add your rules. Intercept enforces them on every tool call before it reaches MongoDB.

terminal

# Download policy scaffold

curl -o mongodb.yaml https://raw.githubusercontent.com/policylayer/intercept/main/policies/mongodb.yaml

# Run with Intercept

intercept --policy mongodb.yaml -- npx -y @mongodb-js/mongodb-mcp-server

Server documentation: https://github.com/mongodb-js/mongodb-mcp-server

READ TOOLS

9

WRITE TOOLS

9

DESTRUCTIVE TOOLS

4

OTHER TOOLS

14

POLICY YAML

This scaffold lists every tool with empty rules. Add conditions — rate limits, argument validation, deny rules — then deploy with Intercept.

mongodb.yaml
version: "1"
description: "Policy for mongodb-js/mongodb-mcp-server"
default: "allow"
tools:
    atlas-get-performance-advisor:
        rules: []
    atlas-list-alerts:
        rules: []
    atlas-list-clusters:
        rules: []
    atlas-list-db-users:
        rules: []
    atlas-list-orgs:
        rules: []
    atlas-list-projects:
        rules: []
    find:
        rules: []
    list-collections:
        rules: []
    list-databases:
        rules: []
    atlas-create-access-list:
        rules: []
    atlas-create-db-user:
        rules: []
    atlas-create-free-cluster:
        rules: []
    atlas-create-project:
        rules: []
    create-collection:
        rules: []
    create-index:
        rules: []
    insert-many:
        rules: []
    rename-collection:
        rules: []
    update-many:
        rules: []
    delete-many:
        rules: []
    drop-collection:
        rules: []
    drop-database:
        rules: []
    drop-index:
        rules: []
    aggregate:
        rules: []
    atlas-connect-cluster:
        rules: []
    atlas-inspect-access-list:
        rules: []
    atlas-inspect-cluster:
        rules: []
    collection-indexes:
        rules: []
    collection-schema:
        rules: []
    collection-storage-size:
        rules: []
    connect:
        rules: []
    count:
        rules: []
    db-stats:
        rules: []
    explain:
        rules: []
    export:
        rules: []
    mongodb-logs:
        rules: []
    switch-connection:
        rules: []

RELATED POLICIES

FREQUENTLY ASKED QUESTIONS

What tools does the MongoDB MCP server expose?

The MongoDB MCP Server exposes 36 tools across 4 categories: Read, Write, Destructive, Other. Each tool can be individually controlled with Intercept policies.

How do I enforce policies on MongoDB?

Download the policy scaffold, add rules (rate limits, argument validation, deny rules), then run Intercept as a proxy in front of the MongoDB MCP server. Every tool call is evaluated against your YAML policy before execution.

Is the MongoDB policy free to use?

Yes. All Intercept policies are open source under the Apache 2.0 licence. Download, modify, and deploy without restrictions.

ENFORCE POLICIES ON MONGODB

Open source. One binary. Zero dependencies.