Backend Developer Stack for Cursor
Configuration
{
"mcpServers": {
"postgres-mcp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres",
"postgresql://localhost/mydb"
],
"env": {
"POSTGRES_CONNECTION_STRING": "YOUR_POSTGRES_CONNECTION_STRING"
}
},
"docker-mcp": {
"command": "npx",
"args": [
"-y",
"docker-mcp"
]
},
"github-mcp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PERSONAL_ACCESS_TOKEN"
}
},
"sentry-mcp": {
"command": "npx",
"args": [
"-y",
"sentry-mcp"
],
"env": {
"SENTRY_AUTH_TOKEN": "YOUR_SENTRY_AUTH_TOKEN"
}
},
"redis-mcp": {
"command": "npx",
"args": [
"-y",
"redis-mcp"
],
"env": {
"REDIS_URL": "YOUR_REDIS_URL"
}
}
}
}Where to save
Paste the config above into:
.cursor/mcp.jsonEnvironment Variables
Replace the YOUR_ placeholders with your actual values.
POSTGRES_CONNECTION_STRINGrequiredPostgreSQL connection string (e.g. postgresql://user:pass@localhost:5432/mydb)
Used by: PostgreSQL MCP
GITHUB_PERSONAL_ACCESS_TOKENrequiredGitHub personal access token
Used by: GitHub MCP
SENTRY_AUTH_TOKENrequiredSentry auth token
Used by: Sentry MCP
REDIS_URLrequiredRedis connection URL
Used by: Redis MCP
What’s in this stack
Query and interact with PostgreSQL databases, inspect schemas, and run SQL directly from your AI editor.
Query and inspect your database schema without leaving your editor. The backbone of most backend apps.
Manage Docker containers, images, volumes, and networks. Run, stop, inspect, and monitor containers from your AI editor.
Manage containers, images, and compose stacks inline. No more context-switching to a terminal for docker commands.
Access the GitHub API to manage repositories, issues, pull requests, branches, and workflows directly from your AI editor.
Create PRs, review diffs, and manage issues. Backend work is heavy on code review — keep it all in one place.
Query Sentry for error tracking, performance monitoring, and issue management directly from your AI editor.
Surface production errors and stack traces directly in your AI context. Debug server-side issues faster.
Interact with Redis databases. Get, set, and manage keys, run commands, and monitor your Redis instances from your AI editor.
Inspect cache state, manage keys, and debug queue jobs. Pairs naturally with Postgres for the classic backend data layer.