MCPpedia last refreshed this data
Files Postgre MCP Server is an MCP server that provides other tools to AI agents. Its tool list has not been published yet over stdio, sse and http, requires no API key, and scores 66/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"files-postgre-mcp": {
"args": [
"-jar",
"/Users/rajesh/Desktop/Java/files-postgre-mcp/target/files-postgre-mcp-1.0.0-SNAPSHOT.jar",
"--spring.profiles.active=stdio,h2"
],
"command": "java"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A production-grade Model Context Protocol (MCP) Server built with Java 17+, Spring Boot 3.4, Spring AI, Spring Data JPA, and Maven.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in other
deja-vu: local memory over the session histories of forty-three coding agents.
MCP WordPress Remote proxy server
专门为 agent 打造的 agent 搜索工具,具备多语言搜索能力,覆盖中文/英文/学术/代码/购物/金融/新闻/百科。
Searchable football data provider documentation for AI coding agents. Like Context7 for football data.
MCP Security Weekly
Get CVE alerts and security updates for Files Postgre MCP Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A production-grade Model Context Protocol (MCP) Server built with Java 17+, Spring Boot 3.4, Spring AI, Spring Data JPA, and Maven.
This MCP server allows AI hosts (such as Claude Desktop, Cursor, or Antigravity IDE) to interact with your local file system (reading, writing, browsing folders) and persist results directly into a PostgreSQL database (or H2 in-memory fallback).
FileToolService)list_directory: Lists files and subfolders with optional glob filtering (*.txt, *.java, etc.) and recursive search.read_file: Reads text file contents with optional maximum line limits.write_file: Writes or appends text to a file, automatically creating parent directories if needed.delete_file: Safely deletes a file from the file system.get_file_info: Retrieves detailed metadata (file size, line count, permissions, modified date).DatabaseToolService)save_file_record: Saves file execution details, content summary, status, and JSON metadata into the PostgreSQL file_records table.get_file_records: Queries saved records by status (e.g., SUCCESS, PROCESSED) or file name keyword search.execute_sql: Executes custom SQL queries (SELECT, INSERT, UPDATE, DELETE, CREATE TABLE) against PostgreSQL.files-postgre-mcp/
├── pom.xml
├── mvnw
├── .mvn/
├── src/
│ ├── main/
│ │ ├── java/com/example/mcp/
│ │ │ ├── FilesPostgreMcpApplication.java # Main entry point
│ │ │ ├── config/
│ │ │ │ └── McpToolConfig.java # MCP ToolCallbackProvider bean
│ │ │ ├── dto/
│ │ │ │ ├── FileInfoDto.java
│ │ │ │ ├── FileOperationResultDto.java
│ │ │ │ └── QueryResultDto.java
│ │ │ ├── entity/
│ │ │ │ └── FileRecordEntity.java # JPA Entity for PostgreSQL
│ │ │ ├── repository/
│ │ │ │ └── FileRecordRepository.java # Spring Data JPA Repository
│ │ │ └── service/
│ │ │ ├── FileToolService.java # MCP File Tools (@Tool)
│ │ │ └── DatabaseToolService.java # MCP DB Tools (@Tool)
│ │ └── resources/
│ │ ├── application.properties # PostgreSQL config
│ │ ├── application-h2.properties # In-memory H2 config
│ │ └── application-stdio.properties # STDIO mode config for MCP hosts
│ └── test/
│ └── java/com/example/mcp/
│ └── FilesPostgreMcpApplicationTests.java
Use the included Maven wrapper (./mvnw):
./mvnw clean package
By default, the server connects to PostgreSQL at jdbc:postgresql://localhost:5432/mcpdb.
You can override credentials via environment variables:
export SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:15432/mcpdb
export SPRING_DATASOURCE_USERNAME=postgresql
export SPRING_DATASOURCE_PASSWORD=postgresql
java -jar target/files-postgre-mcp-1.0.0-SNAPSHOT.jar
Or run with H2 in-memory database for instant zero-config testing:
java -jar target/files-postgre-mcp-1.0.0-SNAPSHOT.jar --spring.profiles.active=h2
Add to your claude_desktop_config.json (e.g., ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"files-postgre-mcp": {
"command": "java",
"args": [
"-jar",
"/Users/rajesh/Desktop/Java/files-postgre-mcp/target/files-postgre-mcp-1.0.0-SNAPSHOT.jar",
"--spring.profiles.active=stdio,h2"
]
}
}
... [View full README on GitHub](https://github.com/raj4rr/files-postgre-mcp-server#readme)