# MongoDB MCP Server
MongoDB MCP server with automatic configuration for Claude Code.
## Usage
Simply run:
```bash
claude-code
```
The `.mcp.json` file automatically configures the MongoDB MCP server.
## Available Tools
- `check_connection` - Check MongoDB connection status and health
## Configuration
Configuration is managed through `settings.json` file in the project root
### Default Settings
- **MongoDB URI**: `mongodb://localhost:27017`
- **Database**: `mcpserver`
### Customizing Configuration
Edit the `settings.json` file to change connection settings:
```json
{
"mongodb": {
"uri": "mongodb://your-host:27017",
"database": "your-database"
}
}
```
If `settings.json` is missing or invalid, the server will fall back to default settings and continue running.
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sergei-tofu-fedorov/mongo_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server