filesystem vs LSP4J-MCP
Side-by-side comparison to help you pick between these two MCP servers.
filesystem by modelcontextprotocol | LSP4J-MCP by stephanj | |
|---|---|---|
| Stars | ★ 85,748 | ★ 23 |
| 30d uses | — | — |
| Score | 77 | 42 |
| Official | ✓ | — |
| Categories | File SystemDeveloper ToolsProductivity | Developer ToolsAI / LLM Tools |
| Language | TypeScript | Java |
| Last commit | this month | 4 mo ago |
filesystem · Summary
A feature-rich MCP server for filesystem operations with dynamic directory access control.
LSP4J-MCP · Summary
Java MCP server wrapping JDTLS to provide Java IDE features like symbol search and reference finding to AI assistants.
filesystem · Use cases
- Enable AI models to read and write project files during development
- Allow Claude or other MCP clients to browse and analyze codebases
- Provide secure sandboxed access to specific directories for content generation
LSP4J-MCP · Use cases
- AI assistants analyzing Java code structure and finding classes or methods
- Refactoring assistance by finding all references to specific code elements
- Code navigation to definitions and implementations of interfaces or methods
- Understanding large Java codebases by exploring relationships between symbols
filesystem · Install
Installation
Using NPX
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/directory"
]
}
}
}Using Docker
{
"mcpServers": {
"filesystem": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount", "type=bind,src=/path/to/allowed/dir,dst=/projects/allowed/dir",
"mcp/filesystem",
"/projects"
]
}
}
}VS Code Extension
Click the installation buttons in the README to install directly in VS Code.
LSP4J-MCP · Install
Installation
Prerequisites
- Java 21+
- Maven 3.8+
- JDTLS installed (e.g., via Homebrew:
brew install jdtls)
Build
mvn clean packageThis creates a shaded JAR at target/lsp4j-mcp-1.0.0-SNAPSHOT.jar.
Claude Desktop Configuration
Add to your .claude_desktop_config.json:
{
"mcpServers": {
"java-lsp": {
"command": "java",
"args": [
"-jar",
"/path/to/LSP4J-MCP/target/lsp4j-mcp-1.0.0-SNAPSHOT.jar",
"/path/to/your/java/project",
"jdtls"
],
"env": {
"LOG_FILE": "/tmp/lsp4j-mcp.log"
}
}
}
}