StackMCP

Java / Spring Boot Stack for VS Code

Advanced5 servers31.8K tokens

Configuration

{
  "servers": {
    "postgres-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-postgres",
        "postgresql://localhost/mydb"
      ],
      "env": {
        "POSTGRES_CONNECTION_STRING": "YOUR_POSTGRES_CONNECTION_STRING"
      }
    },
    "docker-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "docker-mcp"
      ]
    },
    "github-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PERSONAL_ACCESS_TOKEN"
      }
    },
    "sentry-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "sentry-mcp"
      ],
      "env": {
        "SENTRY_AUTH_TOKEN": "YOUR_SENTRY_AUTH_TOKEN"
      }
    },
    "context7-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp"
      ]
    }
  }
}

Where to save

Paste the config above into:

.vscode/settings.json → mcp section

Environment Variables

Replace the YOUR_ placeholders with your actual values.

POSTGRES_CONNECTION_STRINGrequired

PostgreSQL connection string (e.g. postgresql://user:pass@localhost:5432/mydb)

Used by: PostgreSQL MCP

GITHUB_PERSONAL_ACCESS_TOKENrequired

GitHub personal access token

Used by: GitHub MCP

SENTRY_AUTH_TOKENrequired

Sentry auth token

Used by: Sentry MCP

What’s in this stack

Query and interact with PostgreSQL databases, inspect schemas, and run SQL directly from your AI editor.

Spring Boot's go-to database. Query schemas, inspect data, and debug JPA mappings without switching to a SQL client.

Docker MCP14 tools

Manage Docker containers, images, volumes, and networks. Run, stop, inspect, and monitor containers from your AI editor.

Java apps need containerization for consistent builds. Manage your Docker Compose stack and multi-stage builds inline.

GitHub MCP20 tools

Access the GitHub API to manage repositories, issues, pull requests, branches, and workflows directly from your AI editor.

Enterprise Java projects live on rigorous code review. Manage PRs, branch protections, and CI checks from your editor.

Sentry MCP8 tools

Query Sentry for error tracking, performance monitoring, and issue management directly from your AI editor.

Java stack traces are notoriously verbose. Let your AI assistant parse Sentry errors and pinpoint the actual issue.

Pull up-to-date documentation and code examples for any library directly into your prompt context using the Context7 API.

Spring Boot's annotation-heavy API changes between versions. Current docs prevent your AI from generating deprecated patterns.

Other editors