sb-mcp-server

Gokulnair21/sb-mcp-server

3.1

If you are the rightful owner of sb-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This repository contains an MCP (Model Context Protocol) server built with Spring Boot, designed to work over stdio, utilizing a PostgreSQL database running inside Docker.

MCP Server (Spring Boot + PostgreSQL)

This repository contains an MCP (Model Context Protocol) server built with Spring Boot, designed to work over * stdio*. It uses a PostgreSQL database running inside Docker, with initialization SQL scripts applied at startup.


Setup Instructions

1. Spin up PostgreSQL

Make sure PostgreSQL is running via Docker Compose:

docker-compose up -d

This will create and start a PostgreSQL container. An init SQL file (db-init/init.sql) is mounted and executed automatically to set up initial schema/data.


2. Build the MCP Server

Use Gradle to build the Spring Boot executable JAR:

./gradlew bootJar

This will produce the jar under:

build/libs/mcpserver-0.0.1-SNAPSHOT.jar

3. Connect with an MCP Client

  • MCP Client: 5ire.app
  • Make sure to also download Ollama and set up a model that supports tools before enabling this MCP server in the client.

Example command to link the MCP server to client:

java -jar /Users/apple/sb-projects/mcpserver/build/libs/mcpserver-0.0.1-SNAPSHOT.jar