Tinystruct
A lightweight, modular Java application framework for web and CLI development, designed for AI integration and plugin-based architecture. Enabling developers to create robust solutions with ease for building efficient and scalable applications.
What is Tinystruct?
Tinystruct is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to lightweight, modular java application framework for web and cli development, designed for ai integration and plugin-based architecture. enabling developers to create robust solutions with ease for bui...
A lightweight, modular Java application framework for web and CLI development, designed for AI integration and plugin-based architecture. Enabling developers to create robust solutions with ease for building efficient and scalable applications.
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- A lightweight, modular Java application framework for web an
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx tinystructConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Tinystruct
Tinystruct is a lightweight, modular Java application framework designed for both web and CLI development, with built-in support for AI agent integration via the Model Context Protocol. It provides a dispatcher-based architecture where commands like exec, sql-query, say, and start are exposed as invokable actions, allowing AI assistants to drive Java application logic through a plugin-based system. Developers use tinystruct to build efficient, scalable Java services that can be queried or controlled by MCP-compatible AI clients, bridging the gap between traditional Java enterprise patterns and modern AI-native workflows.
Prerequisites
- Java Development Kit (JDK) 17 or higher installed
- Maven for dependency management and project builds
- An MCP-compatible client such as Claude Desktop
- Basic familiarity with Java and Maven project structure
Add the tinystruct dependency to your Maven project
Include the tinystruct artifact in your pom.xml. Use the jar-with-dependencies classifier to get a self-contained runnable JAR that includes all transitive dependencies.
<dependency>
<groupId>org.tinystruct</groupId>
<artifactId>tinystruct</artifactId>
<version>1.7.26</version>
<classifier>jar-with-dependencies</classifier>
</dependency>Build the project with Maven
Run a standard Maven package build to produce the executable JAR in the target directory.
mvn clean package -DskipTestsRun the dispatcher CLI to verify the framework
Use the bundled bin/dispatcher script to test basic functionality. The say command outputs text and confirms the CLI runtime is working correctly.
bin/dispatcher say/"Hello from tinystruct"Start the HTTP server mode
Launch tinystruct's built-in HTTP server to expose your actions over HTTP. The server listens on port 8080 by default and maps URL query parameters to dispatcher commands.
bin/dispatcher start --import org.tinystruct.system.HttpServerConfigure Claude Desktop to use the tinystruct MCP server
Add the tinystruct server entry to your Claude Desktop configuration. Point to your built JAR and use the --stdio flag for MCP stdio transport.
{
"mcpServers": {
"tinystruct": {
"command": "java",
"args": [
"-jar",
"/path/to/your/project/target/your-app-jar-with-dependencies.jar",
"--stdio"
]
}
}
}Tinystruct Examples
Client configuration
Claude Desktop configuration to run a tinystruct-based MCP server from a locally built JAR file.
{
"mcpServers": {
"tinystruct": {
"command": "java",
"args": [
"-jar",
"/Users/yourname/projects/my-tinystruct-app/target/my-app-jar-with-dependencies.jar",
"--stdio"
]
}
}
}Prompts to try
Example prompts once a tinystruct MCP server is running and connected to your client.
- "Run the say command with the message 'current server time' and show the output."
- "Execute a SQL query to list all users in the database."
- "Start the HTTP server and tell me what port it is listening on."
- "Download the remote resource at https://example.com/data.json using the download command."Troubleshooting Tinystruct
java.lang.UnsupportedClassVersionError when running the JAR
Ensure your runtime JDK is version 17 or higher. Run java --version to check. Update JAVA_HOME and PATH to point to the correct JDK installation if needed.
bin/dispatcher command not found after build
Make the dispatcher script executable with chmod +x bin/dispatcher, or invoke it directly as java -jar target/your-app-jar-with-dependencies.jar.
MCP client shows no tools after connecting
Confirm your application class properly extends org.tinystruct.AbstractApplication and declares its actions. The --stdio flag must be present in the args for MCP transport to activate.
Frequently Asked Questions about Tinystruct
What is Tinystruct?
Tinystruct is a Model Context Protocol (MCP) server that lightweight, modular java application framework for web and cli development, designed for ai integration and plugin-based architecture. enabling developers to create robust solutions with ease for building efficient and scalable applications. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Tinystruct?
Follow the installation instructions on the Tinystruct GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Tinystruct?
Tinystruct works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Tinystruct free to use?
Yes, Tinystruct is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.
Tinystruct Alternatives — Similar Developer Tools Servers
Looking for alternatives to Tinystruct? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Tinystruct in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Tinystruct?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.