filesystem vs mcp4k
Side-by-side comparison to help you pick between these two MCP servers.
filesystem by modelcontextprotocol | mcp4k by ondrsh | |
|---|---|---|
| Stars | ★ 85,748 | ★ 69 |
| 30d uses | — | — |
| Score | 77 | 46 |
| Official | ✓ | — |
| Categories | File SystemDeveloper ToolsProductivity | Developer ToolsAI / LLM Tools |
| Language | TypeScript | Kotlin |
| Last commit | this month | 1 mo ago |
filesystem · Summary
A feature-rich MCP server for filesystem operations with dynamic directory access control.
mcp4k · Summary
Kotlin Multiplatform framework for building MCP clients and servers with compile-time type safety.
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
mcp4k · Use cases
- Building Kotlin-based MCP servers for custom tools
- Creating Kotlin clients to interact with MCP servers
- Developing cross-platform MCP applications using Kotlin Multiplatform
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.
mcp4k · Install
Installation
Add mcp4k to your build:
plugins {
kotlin("multiplatform") version "2.3.21" // or kotlin("jvm")
kotlin("plugin.serialization") version "2.3.21"
id("sh.ondr.mcp4k") version "0.4.10" // <-- Add this
}Usage in Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"mcp4k-example": {
"command": "java",
"args": ["-jar", "path/to/your/mcp4k-server.jar"]
}
}
}