Laravel + PHP Stack for Cursor
Configuration
{
"mcpServers": {
"mysql-mcp": {
"command": "npx",
"args": [
"-y",
"mysql-mcp"
],
"env": {
"MYSQL_HOST": "YOUR_MYSQL_HOST",
"MYSQL_USER": "YOUR_MYSQL_USER",
"MYSQL_PASSWORD": "YOUR_MYSQL_PASSWORD",
"MYSQL_DATABASE": "YOUR_MYSQL_DATABASE"
}
},
"docker-mcp": {
"command": "npx",
"args": [
"-y",
"docker-mcp"
]
},
"context7-mcp": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
]
},
"github-mcp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PERSONAL_ACCESS_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.
MYSQL_HOSTrequiredMySQL host
Used by: MySQL MCP
MYSQL_USERrequiredMySQL username
Used by: MySQL MCP
MYSQL_PASSWORDrequiredMySQL password
Used by: MySQL MCP
MYSQL_DATABASErequiredMySQL database name
Used by: MySQL MCP
GITHUB_PERSONAL_ACCESS_TOKENrequiredGitHub personal access token
Used by: GitHub MCP
REDIS_URLrequiredRedis connection URL
Used by: Redis MCP
What’s in this stack
Execute SQL queries against MySQL databases. Inspect schemas, run queries, and analyze data from your AI editor.
Laravel's default database. Query tables, inspect migrations, and debug Eloquent relationships directly from your AI assistant.
Manage Docker containers, images, volumes, and networks. Run, stop, inspect, and monitor containers from your AI editor.
Laravel Sail runs on Docker. Manage your local dev environment, services, and builds without leaving the editor.
Pull up-to-date documentation and code examples for any library directly into your prompt context using the Context7 API.
Laravel evolves fast across major versions. Up-to-date docs ensure your AI writes idiomatic code for your exact version.
Access the GitHub API to manage repositories, issues, pull requests, branches, and workflows directly from your AI editor.
Manage PRs and CI pipelines. Laravel projects benefit from structured code review given the framework's convention-heavy patterns.
Interact with Redis databases. Get, set, and manage keys, run commands, and monitor your Redis instances from your AI editor.
Laravel uses Redis for queues, cache, and sessions out of the box. Inspect job queues and debug cache issues inline.