Skip to content
Stand with Ukraine flag

Configuration

ModeWhen to useKey environment variables
STDIO (default)Clients that launch the server as a subprocess (Claude Desktop, Cursor, Claude Code)SPRING_AI_MCP_SERVER_STDIO=true (default)
SSEHTTP-based clients or running the server as a standalone serviceSPRING_AI_MCP_SERVER_STDIO=false, SPRING_WEB_APPLICATION_TYPE=servlet

In SSE mode, the server listens on http://<HTTP_BIND_ADDRESS>:<HTTP_BIND_PORT>/sse — default: http://127.0.0.1:8000/sse.

VariableDescriptionDefault
THINGSBOARD_URLEdge node base URL
THINGSBOARD_USERNAMEUsername for authentication
THINGSBOARD_PASSWORDPassword for authentication
THINGSBOARD_LOGIN_INTERVAL_SECONDSSession refresh interval (username/password mode)1800
SPRING_AI_MCP_SERVER_STDIOEnable STDIO transporttrue
SPRING_WEB_APPLICATION_TYPEnone for STDIO, servlet for SSEnone
SPRING_AI_MCP_SERVER_SSE_ENDPOINTSSE endpoint path/sse
SPRING_AI_MCP_SERVER_SSE_MESSAGE_ENDPOINTSSE message endpoint path/mcp/message
SERVER_PORTHTTP server port (SSE mode)8080
LOGGING_PATTERN_CONSOLEConsole log pattern — set to empty string to suppress logs in STDIO mode(empty)