Tinystruct

v1.0.0Developer Toolsstable

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.

ai-agentai-developmentframeworkjavajava-ai
Share:
333
Stars
0
Downloads
0
Weekly
0/5

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

Build modular Java applications.
Create AI-integrated frameworks.
Develop plugin-based solutions.
tinystruct

Maintainer

LicenseApache-2.0
Languagejava
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx tinystruct

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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>
2

Build the project with Maven

Run a standard Maven package build to produce the executable JAR in the target directory.

mvn clean package -DskipTests
3

Run 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"
4

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.HttpServer
5

Configure 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.

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.

Quick Config Preview

{ "mcpServers": { "tinystruct": { "command": "npx", "args": ["-y", "tinystruct"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides