Back to Home
small-xiexu icon

mcp-server-study

Verified Safe

by small-xiexu

Overview

This project implements a Spring AI-based MCP (Model Context Protocol) server, enabling AI models to interact with external systems by providing various tool capabilities like querying computer configurations, exporting database data, querying weather, and publishing CSDN articles.

Installation

Run Command
java -jar /path/to/mcp-server-study-1.0.0.jar

Environment Variables

  • CSDN_CA_KEY
  • CSDN_CA_NONCE
  • CSDN_CA_SIGNATURE

Security Notes

The project demonstrates robust security practices, especially for database interactions, using a custom `SqlValidator` and the Druid SQL firewall to prevent SQL injection (allowing only SELECT queries and disallowing multi-statements, comments, and DDL/DML operations). The `CsvWriter` prevents path traversal attacks. The `ComputerService` executes fixed system commands, mitigating direct command injection risks. CSDN API credentials are managed via external files and environment variables, avoiding hardcoding secrets in the source code. Operational security of these credentials is the user's responsibility. No 'eval' or obfuscation found.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens100
Stars0
Forks0
Last Update2026-01-19

Tags

Spring AIMCP ServerTool CallingJavaAgentic