MCPJavaFileSystem MCP Server

This project implements a Model Context Protocol (MCP) server that provides filesystem operations and web access tools for Large Language Model (LLM)

Local serverstdio

What is the MCPJavaFileSystem MCP server?

MCPJavaFileSystem MCP server exists for a simple reason — assistants are far more useful when they can act on MCPJavaFileSystem directly instead of describing what you should do. This project implements a Model Context Protocol (MCP) server that provides filesystem operations and web access tools for Large Language Model (LLM) agents. It enables AI assistants to interact with both the local filesystem and web.

What the assistant can call

Once MCPJavaFileSystem is connected, these are the calls the assistant has available:

  • Prerequisites — The Prerequisites tool exposed by this server
  • ReadFileService — The ReadFileService tool exposed by this server
  • WriteFileService — The WriteFileService tool exposed by this server
  • EditFileService — The EditFileService tool exposed by this server
  • SearchFilesService — The SearchFilesService tool exposed by this server
  • ListDirectoryService — The ListDirectoryService tool exposed by this server
  • GrepFilesService — The GrepFilesService tool exposed by this server
  • CreateDirectoryService — The CreateDirectoryService tool exposed by this server
  • BashService — The BashService tool exposed by this server
  • FetchWebpageService — The FetchWebpageService tool exposed by this server

Setting it up

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Configuration and credentials

  • Java 17 or higher - Maven 3.6+ - Spring Boot 3.3.6 - Spring AI MCP Server components

Choosing this one

This sits in the file and storage access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MCPJavaFileSystem's toolset — Prerequisites, ReadFileService, WriteFileService and 7 more — is a fair guide to whether it matches your workflow. It is maintained by stephanj; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against MCPJavaFileSystem's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 10 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch MCPJavaFileSystem.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the mcpjavafilesystem mcp server does with a few real requests.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.
ReadFileServiceThe ReadFileService tool exposed by this server.
WriteFileServiceThe WriteFileService tool exposed by this server.
EditFileServiceThe EditFileService tool exposed by this server.
SearchFilesServiceThe SearchFilesService tool exposed by this server.
ListDirectoryServiceThe ListDirectoryService tool exposed by this server.
GrepFilesServiceThe GrepFilesService tool exposed by this server.
CreateDirectoryServiceThe CreateDirectoryService tool exposed by this server.
BashServiceThe BashService tool exposed by this server.
FetchWebpageServiceThe FetchWebpageService tool exposed by this server.

How to install the MCPJavaFileSystem MCP server

{
  "mcpServers": {
    "filesystem": {
      "command": "/Library/Java/JavaVirtualMachines/liberica-jdk-23.jdk/Contents/Home/bin/java",
      "args": [
        "-Dspring.ai.mcp.server.stdio=true",
        "-Dspring.main.web-application-type=none",
        "-Dspring.main.banner-mode=off",
        "-Dlogging.pattern.console=",
        "-jar",
        "~/JavaFileSystemMCP/target/devoxx-filesystem-0.0.1-SNAPSHOT.jar"
      ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Java 17 or higher - Maven 3.6+ - Spring Boot 3.3.6 - Spring AI MCP Server components

Example prompts to try

  • Use MCPJavaFileSystem to Prerequisites.
  • Use MCPJavaFileSystem to ReadFileService.
  • Use MCPJavaFileSystem to WriteFileService.

Frequently asked questions

It connects MCPJavaFileSystem to MCP-compatible AI assistants such as Claude and Cursor, exposing 10 tools (Prerequisites, ReadFileService, WriteFileService, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCPJavaFileSystem directly.