Skip to content

Instantly share code, notes, and snippets.

@up1
Last active May 2, 2025 12:03
Show Gist options
  • Save up1/a253439d720464c12c4e3b597cfe4c74 to your computer and use it in GitHub Desktop.
Save up1/a253439d720464c12c4e3b597cfe4c74 to your computer and use it in GitHub Desktop.
MCP Server with MongoDB and Redis
$git clone https://github.com/redis/mcp-redis.git
$cd mcp-redis
$docker image build -t mcp-redis .
{
"servers": {
"MongoDB": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server",
"--connectionString",
"mongodb://myuser:mypassword@localhost/demo-db"
]
}
}
}
{
"servers": {
"MongoDB": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server",
"--connectionString",
"mongodb://myuser:mypassword@localhost/demo-db"
]
},
"Redis": {
"command": "docker",
"args": [
"container",
"run",
"--rm",
"--name",
"redis-mcp-server",
"-i",
"-e",
"REDIS_HOST=localhost",
"-e",
"REDIS_PORT=6379",
"mcp-redis"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment