SkillTide Submit
Official description3 sourcesMCP servers3d ago
tersePrompts/fastMCP4J

tersePrompts/fastMCP4J

โ˜• ๐Ÿ  - Lightweight Java library for building MCP servers using annotations
View on GitHub โ†—Direct link ยท no redirect page
Official descriptionโ˜• ๐Ÿ  - Lightweight Java library for building MCP servers using annotations. Annotation-driven development with only 12 dependencies, built-in tools (memory, todo, planner, file ops, bash, telemetry), m
Source
collected from the rohitg00/awesome-devops-mcp-servers list ยท type: MCP server
Harvest history
first seen 2026-10-14 ยท last seen 2026-10-16 ยท seen 4ร— ยท listed by 3 sources
Score
score 303 ยท 3 sources ยท mcp
FAQ (answers come from our records)
How do I install it?
We did not find an install command for this repository (our install coverage is only about 4%). Check its README or releases page.
Who is it for?
We filed it under these tags: MCP ๆœๅŠก. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-10-14๏ผ›last seen 2026-10-16ใ€‚There is no official certification or quality rating here โ€” we record sources and dates only.
Third-party quality signals

FastMCP4J

ไปฅไธ‹ๆ‘˜ๅฝ•่‡ช่ฏฅไป“ๅบ“็š„ README๏ผˆ็‰‡ๆฎต๏ผ‰ ยท ๅœจ GitHub ่ฏปๅฎŒๆ•ด README โ†’

**Annotate a Java class. Ship an MCP server.**
Tools, resources, prompts, memory โ€” and a sandboxed bash terminal that can't
touch your machine. No boilerplate, no containers, no 50-jar framework.
**AI Agents โ†’** Share this skill with Claude for code generation
FastMCP4J is an annotation-driven SDK for the
Model Context Protocol (spec 2.0.1) on
Java 17+. One annotation turns a class into an MCP server; one more gives your
AI agent a real terminal โ€” **a bash sandbox where the host is unreachable by
construction**. Cold start in under 500 ms, twelve dependencies, everything
testable in-process.
> **Status**: beta (v0.5.0-beta) โ€” API stable, 235 tests passing, published to
> Maven Central.
---
Quick start (2 minutes)
**Maven**
**Gradle**
That's the whole install story: **Java 17+**, one artifact on Maven Central,
MCP Java SDK 2.0.1 underneath. No annotation processor, no codegen step, no
container runtime.
Create your server
**That's it. Your MCP server is running.**
**Working example**: EchoServer.java
---
Why this exists
Every Java team wiring AI agents to tools faces the same choice, and every
option hurts:
| | Raw MCP SDK | Spring AI / LangChain4j | **FastMCP4J** |
|---|---|---|---|
| Lines per tool | 35+ | varies, plus framework glue | **~8** |
| Dependencies | 1 + your patience | 30โ€“50+ jars | **12 jars** |
| Startup | fast | framework-sized | ** **Before:** a day of JSON-schema plumbing per tool, and shell access means a
> rogue prompt is a node down.
> **After:** annotations on Tuesday, agents in production Wednesday โ€” and the
> terminal they use can't touch your disk.
---
The API tour
1 ยท Make a tool โ€” sync or async
2 ยท Built-in brains โ€” one annotation each
| Annotation | Tools you get |
|------------|---------------|
| @McpMemory | list, read, create, replace, insert, delete, rename |
| @McpTodo | add, list, updateStatus, updateTask, delete, clearCompleted |
| @McpPlanner | createPlan, listPlans, getPlan, addTask, addSubtask |
| @McpFileRead | readLines, readFile, grep, getStats |
| @McpFileWrite | writeFile, appendFile, writeLines, deleteFile, createDirectory |
3 ยท Sandboxed bash โ€” give the agent a terminal, not your machine
Scripts run in a bashkit4j
in-memory sandbox: POSIX-style bash with 160+ commands re-implemented
natively, a virtual filesystem, network denied by default. **No real bash is
ever spawned.** Then the agent calls the bash tool:
| | Host shell (ProcessBuilder, Docker) | **Sandbox mode** |
|---|---|---|
| Real bash on the host | โœ… runs โ€” full attack surface | **โŒ never โ€” bash re-implemented natively** |
| Host filesystem visible | โœ… all of it | **โŒ invisible until you mount, read-only by default** |
| OS processes per command | โœ… one per call | **โŒ zero โ€” in-process** |
| Network access | โœ… open | **โŒ denied by default** |
| One rogue script | node down | **sandbox reset** |
State persists across calls (cwd, env, files) โ€” multi-step agent workflows
work. Mounts are enforced inside the native library: canonicalized,
symlink-safe, and impossible without allowMountsUnder. Need the real shell
for trusted automation? mode = BashMode.HOST keeps the legacy tool with its
path guardrails.
> Sandbox mode requires the optional
> io.github.terseprompts:bashkit4j:0.2.0 dependency โ€” native libs for
> Windows/Linux/macOS (x86-64 + ARM64) are bundled and auto-detected.
> **๐Ÿ”ญ Future scope โ€” a third mode, BashMode.DOCKER.** The isolation ladder
> gets one more rung: HOST = the full computer (trusted use) โ†’ SANDBOX =
Source
awesome ยท https://github.com/tersePrompts/fastMCP4J
Browse by field
MCP servers
added
yesterday

More in MCP servers

All 5,525 in MCP servers โ†’

Filed under

Every tag opens the full list for that filter. Counts are the live catalogue figures.

Browse all fields โ†’

โ† Back to index