Java Filesystem & Web MCP Server
JSON →An MCP server for LLM agents to perform filesystem operations and access web resources.
Tools · 9
- readFile Reads the complete contents of a file from the file system. Handles various text encodings and provides detailed error messages if the file cannot be read.
- writeFile Creates a new file or completely overwrites an existing file with new content. Creates parent directories if they don't exist.
- editFile Makes line-based edits to a text file. Each edit replaces exact line sequences with new content. Returns a git-style diff showing the changes made. The dryRun parameter allows viewing changes without applying them.
- searchFiles Recursively searches for files and directories matching a pattern. Searches through all subdirectories from the starting path. The search is case-insensitive and matches partial names.
- listDirectory Gets a detailed listing of all files and directories in a specified path. Results clearly distinguish between files and directories with additional metadata.
- grepFiles Searches for text patterns within files. Returns matching files with line numbers and context. Similar to the Unix 'grep' command but with additional features for context display. Supports regex patterns, case-insensitive search, and context lines before/after matches.
- createDirectory Creates new directories or ensures that directories exist. Can create multiple directories in one operation. If a directory already exists, the operation succeeds silently. Perfect for setting up directory structures for projects or ensuring required paths exist.
- executeBash Execute a Bash command in the system shell and return the output. This tool allows running system commands and capturing their standard output and error streams. Use with caution as some commands may have system-wide effects.
- fetchWebpage Fetches or reads a webpage from a URL and returns its content. The service uses jsoup to connect to the webpage and retrieve its content. The optional timeoutMs parameter allows setting a custom connection timeout.
Links
★ 24 GitHub stars