Tinystruct

Agent frameworks and SDKsDeveloper tools

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.

Your AI app calls the Tinystruct MCP server, which does the agent frameworks and SDKs and developer tools work and sends the result back to the chat.

About Tinystruct

Tinystruct is a community MCP server from tinystruct, filed in our directory under agent frameworks and sdks and developer tools. 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.

At a glance

Publisher
tinystruct (community)
Runs
See the README for setup
Written in
Java
License
Apache-2.0
GitHub stars
366

How to set up Tinystruct

  1. Follow the install steps in the Tinystruct README; it is written in Java, so have that toolchain ready.
  2. Check the Tinystruct README for keys or settings; the registry lists none that Tinystruct requires.
  3. Add Tinystruct to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Tinystruct tools to confirm the connection.
  5. Run one read-only task with Tinystruct first, and keep your app asking before each tool call until the results look right.

Tinystruct compared with similar servers

  • macOS Use by mediar-ai has fewer GitHub stars than Tinystruct (361 against 366); both are community servers, and both run locally.
  • Mikrotik by wiresage has more GitHub stars than Tinystruct (367 against 366); both are community servers, and both run locally.
  • Cpp by hkr04 has fewer GitHub stars than Tinystruct (353 against 366); both are community servers, and both run locally.

Before you connect Tinystruct

  • Give Tinystruct its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Tinystruct tool call until you trust what it does with them.
  • Treat text that Tinystruct fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Tinystruct on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Tinystruct

How marketing and sales teams put Tinystruct to work, by company size. Pick the size closest to yours and start Tinystruct on one use case.

Small business

  • A small business with a developer can use Tinystruct to build one focused agent, such as lead follow-up, without a big platform.
  • Technical founders can prototype marketing agents with Tinystruct and keep what works as a small, owned tool.
  • A small business with a developer can use Tinystruct to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Tinystruct runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineering teams can use Tinystruct to build agents that combine CRM, analytics and content tools behind one workflow.
  • Marketing ops can standardize on Tinystruct so every agent they ship has the same logging, approvals and error handling.
  • Growth engineers can use Tinystruct to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Start Tinystruct on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can build on Tinystruct with their own identity, policy and evaluation layers, so agents meet the same bar as other software.
  • Platform teams can use Tinystruct to give business units a governed way to ship agents without each one starting from scratch.
  • Enterprise engineering teams can roll out Tinystruct with repo scopes and audit logs, so agents work only where they are allowed.
  • Tinystruct is a community server, so have security review the code and pin a version before Tinystruct touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Tinystruct README

From tinystruct/tinystruct on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

"How many are your works, O LORD ! In wisdom you made them all; the earth is full of your creatures." Psalms 104:24

Language: English | Português (Brasil) | 简体中文 | 繁體中文 | 日本語 | 한국어 | Türkçe | Русский | Tiếng Việt | ไทย | Deutsch | Español

The tinystruct framework

A simple framework for Java development. Simple thinking, Better design, Easy to be used with better performance!

Prerequisites

  • Java Development Kit (JDK) 17 or higher
  • Maven (for dependency management)
  • A text editor or IDE (IntelliJ IDEA, Eclipse, VS Code, etc.)

Getting Started with tinystruct archetype

You can follow this archetype to create a tinystruct-based project quickly: https://github.com/tinystruct/tinystruct-archetype

Or create a project with a single command (Linux/macOS, requires JDK 17+ and Maven; choose basic, web, mcp, workflow or agent):

curl -fsSL https://tinystruct.org/create | sh

On Windows (requires Git for Windows or WSL), run this in PowerShell:

irm https://tinystruct.org/create.ps1 | iex

Installation and Getting Started Manually

  • Add the dependency into your pom.xml.
<dependency>
  <groupId>org.tinystruct</groupId>
  <artifactId>tinystruct</artifactId>
  <version>1.7.40</version>
</dependency>

To use the framework as a standalone command-line tool, build the optional jar that bundles all dependencies (about 50 MB, not part of the release):

./mvnw package -Pstandalone        # Windows: mvnw.cmd package -Pstandalone
java -jar target/tinystruct-1.7.40-jar-with-dependencies.jar --help
  • Extend the AbstractApplication in Java:
package tinystruct.examples;


import org.tinystruct.AbstractApplication;
import org.tinystruct.ApplicationException;
import org.tinystruct.system.annotation.Action;

public class example extends AbstractApplication {

    @Override
    public void init() {
        // To do Auto-generated method stub
    }

    @Override
    public String version() {
        return "1.0";
    }

    @Action("praise")
    public String praise() {
        return "Praise the Lord!";
    }

    @Action("say")
    public String say() throws ApplicationException {
        if (null != getContext().getAttribute("--words"))
            return getContext().getAttribute("--words").toString();

        throw new ApplicationException("Could not find the parameter <i>words</i>.");
    }

    @Action("say")
    public String say(String words) {
        return words;
    }

    @Action(value = "hello", mode = Mode.HTTP_GET)
    public String helloGet() {
        return "GET";
    }

    @Action(value = "hello", mode = Mode.HTTP_POST)
    public String helloPost() {
        return "POST";
    }

}

Smalltalk: https://github.com/tinystruct/smalltalk

Execute in CLI mode

$ bin/dispatcher --version

  _/  '         _ _/  _     _ _/
  /  /  /) (/ _)  /  /  (/ (  /  1.7.40
           /
$ bin/dispatcher --help
Usage: bin/dispatcher COMMAND [OPTIONS]
A command line tool for tinystruct framework
Commands: 
        download        Download a resource from other servers
        exec            To execute native command(s)
        generate        POJO object generator
        install         Install a package
        maven-wrapper   Extract Maven Wrapper
        open            Start a default browser to open the specific URL
        say             Output words
        set             Set system property
        sql-execute     Executes the given SQL statement, which may be an INSERT, UPDATE, DELETE, or DDL statement
        sql-query       Executes the given SQL statement, which returns a single ResultSet object
        update          Update for latest version

Options: 
        --allow-remote-access   Allow to be accessed remotely
        --help                  Help command
        --host                  Host name / IP
        --import                Import application
        --logo                  Print logo
        --settings              Print settings
        --version               Print version

Run 'bin/dispatcher COMMAND --help' for more information on a command.
$ bin/dispatcher say/"Praise the Lord"
Praise the Lord
$ bin/dispatcher say --words Hello --import tinystruct.examples.example
Hello

Run it in a http server

# bin/dispatcher start --import org.tinystruct.system.HttpServer 

You can access the below URLs:

  • http://localhost:8080/?q=say/Praise%20to%20the%20Lord!
  • http://localhost:8080/?q=praise

Performance Test

$ wrk -t12 -c400 -d30s "http://127.0.0.1:8080/?q=say/Praise the Lord!"

Running 30s test @ http://127.0.0.1:8080/?q=say/Praise the Lord!
12 threads and 400 connections

Thread Stats   Avg      Stdev     Max       +/- Stdev
Latency        17.44ms  33.42ms   377.73ms  88.98%
Req/Sec        7.27k    1.66k     13.55k    69.94%

2604473 requests in 30.02s, 524.09MB read

Requests/sec:  86753.98
Transfer/sec:  17.46MB

Handling over 86,000 requests per second with low average latency (~17.44ms), indicating the endpoint is highly efficient under heavy load. this shows the raw power and efficiency of the tinystruct framework. But it's not just about the performance numbers. It's about the philosophy behind it.

What makes tinystruct framework modern?

  1. No main() method required Applications can be started directly using CLI commands like bin/dispatcher, with no boilerplate code needed. This removes unnecessary ceremony from the development lifecycle.

  2. Unified design for CLI and Web Unlike Spring Boot which is primarily web-centric, tinystruct treats CLI and Web as equal citizens. This makes it perfect for AI tasks, script automation, and hybrid applications, all from the same codebase.

  3. Built-in lightweight HTTP server Whether it’s Netty or Tomcat, tinystruct integrates the server lifecycle inside the framework. There's no need for separate containers or complicated configuration files. Just import what you need and run.

  4. Minimal configuration philosophy Configuration is minimized to the essentials. You don't need to wire up hundreds of beans, and there's no excessive XML or YAML involved. This improves developer productivity and reduces bugs.

  5. Annotation-based routing The framework provides a clean and intuitive routing mechanism using @Action, eliminating the need for overly complex controller hierarchies.

  6. Performance-first architecture There’s almost zero overhead. No reflection-based bean scanning, no auto-wiring maze, no unnecessary interceptors unless explicitly enabled. This translates into faster response times and smaller memory footprint.

  7. Developer empowerment without complexity With tinystruct, developers are free to focus on real business logic rather than fighting with framework mechanics. It's designed to be transparent, predictable, and extensible, all without sacrificing control or performance.

Architecture

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Questions about Tinystruct

What is the Tinystruct MCP server?

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. Tinystruct is maintained by tinystruct on GitHub at tinystruct/tinystruct, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Tinystruct MCP server?

Tinystruct doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (tinystruct/tinystruct). Like most servers, Tinystruct ends with a command or URL you paste into your AI app's MCP config.

Does Tinystruct need an API key?

The registry lists no required keys for Tinystruct. Check the Tinystruct README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Tinystruct an official MCP server?

No. Tinystruct is a community server maintained by tinystruct. Community servers can be excellent; read the code and the open issues before you give Tinystruct access to company data.

What license is Tinystruct under?

Tinystruct is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of Tinystruct; the service it connects to has its own terms.