Tinyman MCP Server: Algorand Batteries Included - A Deep Dive into Seamless AMM Interaction
The Tinyman MCP (Model Context Protocol) Server, meticulously crafted by GoPlausible, represents a significant leap forward in facilitating interaction with the Tinyman Automated Market Maker (AMM) protocol on the Algorand blockchain. This server acts as a crucial bridge, providing developers and users with the necessary tools to manage pools, execute swaps, and handle liquidity with unparalleled ease and efficiency.
At its core, the Tinyman MCP Server is designed to simplify the complexities associated with decentralized finance (DeFi) and AMM interactions. By abstracting away the intricate technical details, it empowers users to focus on strategic decision-making and value creation within the Algorand ecosystem.
Key Components
The Tinyman MCP implementation comprises two primary packages:
@tinyman-mcp/server: This package serves as the backbone of the MCP server, offering a comprehensive suite of tools for Tinyman operations. It encompasses functionalities such as pool management, swap execution, liquidity provision, and in-depth analytics.@tinyman-mcp/client: Currently a work in progress, this client implementation is designed to facilitate seamless wallet connections and transaction signing, further enhancing the user experience.
Core Features: Empowering Seamless DeFi Interactions
The Tinyman MCP Server boasts a rich set of features designed to streamline and optimize interactions with the Tinyman AMM protocol. These features can be categorized into the following key areas:
1. Pool Management:
tinyman_get_pool: This tool enables users to retrieve detailed information about a specific pool, including its composition, liquidity, and other relevant parameters. This comprehensive data empowers users to make informed decisions regarding their participation in the pool.tinyman_get_pool_analytics: Gain access to in-depth analytics and statistics for a pool, providing valuable insights into its performance, trading activity, and overall health. This feature is crucial for understanding the dynamics of a pool and identifying potential opportunities.tinyman_get_pool_creation_quote: Generate accurate quotes for creating new pools, taking into account various factors such as asset ratios and transaction fees. This simplifies the process of launching new liquidity pools on the Tinyman platform.
2. Trading Operations:
tinyman_get_swap_quote: Generate precise quotes for asset swaps, with comprehensive support for various swap types:- Fixed Input Amount Swaps: Execute swaps with a predetermined input amount, ensuring predictable costs.
- Fixed Output Amount Swaps: Specify the desired output amount, allowing for precise control over the received assets.
- Slippage Calculations: Accurately calculate slippage, mitigating the risk of unexpected price fluctuations during swap execution.
3. Liquidity Management:
tinyman_get_liquidity_quote: Generate quotes for adding liquidity to pools, supporting both single and dual asset deposits:- Single and Dual Asset Deposits: Flexibly deposit either a single asset or a combination of two assets to provide liquidity.
- Expected Pool Tokens Calculation: Calculate the expected number of pool tokens to be received in exchange for deposited liquidity, ensuring transparency and predictability.
tinyman_get_remove_liquidity_quote: Generate quotes for removing liquidity from pools, supporting both proportional and single-asset withdrawals:- Proportional and Single-Asset Withdrawals: Withdraw liquidity proportionally or in the form of a single asset, providing flexibility in managing asset exposure.
- Expected Asset Returns Calculation: Calculate the expected asset returns upon liquidity removal, enabling informed decision-making.
4. Asset Operations:
tinyman_get_asset_optin_quote: Generate quotes for opting into an asset, enabling users to participate in pools involving that asset.tinyman_get_validator_optin_quote: Generate quotes for opting into a validator, facilitating participation in the Tinyman ecosystem’s governance and security mechanisms.tinyman_get_validator_optout_quote: Generate quotes for opting out of a validator, allowing users to exit validator roles when desired.
The Tinyman MCP Server seamlessly supports both Tinyman v1.1 and v2 protocols, with v2 being the default version where applicable, ensuring compatibility and access to the latest features and improvements.
Installation and Setup: A Step-by-Step Guide
Setting up the Tinyman MCP Server is a straightforward process that involves cloning the repository, installing dependencies, and configuring the environment variables. Here’s a detailed guide:
Prerequisites: Ensure that Node.js version 23.6.1 or later is installed on your system. You can verify the Node.js version using the command
node -v. If necessary, upgrade to the latest version.Directory Setup: Create an
mcp-serversdirectory within your Claude or Cursor container folders. This directory will house the Tinyman MCP Server repository. bash mkdir PATH_ON_YOUR_MACHINE/Claude/mcp-serversor for Cursor
mkdir PATH_ON_YOUR_MACHINE/Cursor/mcp-servers
Clone the Repository: Clone the Tinyman MCP Server repository into the
mcp-serversdirectory. bash cd PATH_ON_YOUR_MACHINE/Claude/mcp-serversor for Cursor
cd PATH_ON_YOUR_MACHINE/Cursor/mcp-servers
Clone the repository
git clone https://github.com/GoPlausible/tinyman-mcp.git cd tinyman-mcp
Install Dependencies: Install the necessary dependencies using npm. bash npm install
Build the Project: Build the project using the following command: bash npm run build
Configure Environment Variables: Edit the
.envfile to configure environment variables such as the Algorand network, API endpoints, and wallet settings. This step is crucial for connecting the server to the Algorand blockchain.ALGORAND_NETWORK=mainnet ALGORAND_ALGOD_API=https://mainnet-api.algonode.cloud/v2 ALGORAND_ALGOD=https://mainnet-api.algonode.cloud ALGORAND_ALGOD_PORT= ALGORAND_TOKEN= ALGORAND_AGENT_WALLET=“problem aim online jaguar upper oil flight stumble mystery aerobic toy avoid file tomato moment exclude witness guard lab opera crunch noodle dune abandon broccoli” ITEMS_PER_PAGE=10
MCP Configuration: Integrate the Tinyman MCP Server into your MCP configuration by adding the server details to your MCP config file.
{ “mcpServers”: { “tinyman-mcp”: { “command”: “node”, “args”: [ “PATH_ON_YOUR_MACHINE/Claude/mcp-servers/tinyman-mcp/packages/server/dist/index.js” ], “env”: { “ALGORAND_NETWORK”: “mainnet”, “ALGORAND_ALGOD_API”: “https://mainnet-api.algonode.cloud/v2”, “ALGORAND_ALGOD”: “https://mainnet-api.algonode.cloud”, “ALGORAND_ALGOD_PORT”: “”, “ALGORAND_TOKEN”: “”, “ALGORAND_AGENT_WALLET”: “problem aim online jaguar upper oil flight stumble mystery aerobic toy avoid file tomato moment exclude witness guard lab opera crunch noodle dune abandon broccoli”, “ITEMS_PER_PAGE”: “10”
} }} }
Remember to adjust the paths to match your local system’s directory structure. For macOS users with Claude, the path might resemble:
{ “mcpServers”: { “algorand-mcp”: { “command”: “node”, “args”: [ " /Users/YOUR_USERNAME/Library/Application Support/Claude/mcp-servers/tinyman-mcp/packages/server/dist/index.js" ] } } }
Project Structure: A Modular Design
The Tinyman MCP Server project adopts a modular structure, enhancing maintainability and scalability. The project is organized into the following directories:
packages/ ├── client/ # Client implementation (WIP) └── server/ # MCP server implementation
Development Workflow: Contributing to the Ecosystem
Developers interested in contributing to the Tinyman MCP Server project can follow these steps:
bash
Install dependencies
npm install
Build all packages
npm run build
Clean build artifacts
npm run clean
License: Open Source and Community-Driven
The Tinyman MCP Server is licensed under the MIT License, fostering open collaboration and community-driven development.
Leveraging UBOS for Enhanced AI Agent Development
While the Tinyman MCP Server focuses on enabling seamless interaction with the Tinyman AMM protocol, platforms like UBOS provide a broader scope for AI agent development. UBOS, a full-stack AI Agent Development Platform, empowers businesses to orchestrate AI Agents, connect them with enterprise data, build custom AI Agents using their own LLM models, and create sophisticated Multi-Agent Systems. The MCP protocol, which the Tinyman MCP server implements, is a key technology that UBOS uses to connect AI agents to external data sources and tools.
By integrating the Tinyman MCP Server with UBOS, developers can create powerful AI agents that can:
- Automate DeFi Interactions: Automate tasks such as pool management, swap execution, and liquidity provision, freeing up valuable time and resources.
- Optimize Trading Strategies: Develop AI-powered trading strategies that leverage real-time data and analytics to maximize returns.
- Enhance Risk Management: Implement AI-driven risk management systems that monitor market conditions and mitigate potential risks.
- Personalized DeFi Experiences: Create personalized DeFi experiences tailored to individual user preferences and risk profiles.
In conclusion, the Tinyman MCP Server is a critical component for accessing the Tinyman AMM protocol on Algorand. It offers a wide range of tools for managing pools, trading, and working with liquidity. Combining this with the AI agent building power of UBOS opens up new opportunities for innovation in the DeFi space and beyond. By embracing the power of AI and decentralized finance, businesses can unlock new levels of efficiency, profitability, and customer satisfaction. This combination of the Tinyman MCP server and a platform like UBOS is an important step in the evolution of AI-driven solutions in the blockchain world.
Tinyman MCP Server
Project Details
- GoPlausible/tinyman-mcp
- MIT License
- Last Updated: 5/3/2025
Recomended MCP Servers
MCP Server for IBKR Client
mcp_aidaily
A Model Context Protocol (MCP) server for creating, reading, and manipulating Microsoft Word documents. This server enables AI...
An MCP server implementation providing persistent memory capabilities for Claude, based on research into optimal LLM memory techniques
A Model Context Protocol (MCP) server implementation for Gumroad API
MCP server for simplified framework deployments on shared hosting environments
Model Context Protocol (MCP) server that provides tools for accessing the Korea Tourism API





