Back to Home
8resd8 icon

Dev-Assistant

Verified Safe

by 8resd8

Overview

An AI-powered local server that allows an LLM to query a local MySQL database and analyze local server log files via the Model Context Protocol (MCP).

Installation

Run Command
java -Dfile.encoding=UTF-8 -jar <path-to-your-project>/build/libs/resd-0.0.1-SNAPSHOT.jar

Security Notes

The server restricts database queries to only 'SELECT' statements, which is a strong measure against data manipulation. It uses local Stdio for communication, preventing external network exposure. However, the `DatabaseMcpService` directly executes LLM-generated SQL queries via `jdbcTemplate.queryForList(sql)` without parameterized statements, making it potentially vulnerable to SQL injection if an LLM crafts a malicious 'SELECT' query (e.g., to exfiltrate data or cause performance issues). Log file analysis is limited to 50 lines, reducing potential resource exhaustion.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-12-02

Tags

AI AssistantMCPSpring BootJavaLocal DatabaseLog Analysis