Labsco
GoPlausible logo

Tinyman MCP

โ˜… 1

from GoPlausible

An MCP server for the Tinyman protocol on the Algorand blockchain, offering tools for swaps, liquidity provision, and pool management.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

Tinyman MCP

A Model Context Protocol (MCP) implementation for Tinyman on Algorand, built by GoPlausible.

Overview

This project provides MCP tools and resources for interacting with Tinyman AMM protocol on Algorand blockchain. It consists of two main packages:

  • @tinyman-mcp/server: MCP server implementation providing tools for Tinyman operations like swaps, liquidity provision, pool management and analytics
  • @tinyman-mcp/client: Client implementation for wallet connections and transaction signing (Work in Progress)

Features

The MCP server provides the following tools:

Pool Management

  • tinyman_get_pool: Retrieve detailed information about a specific pool
  • tinyman_get_pool_analytics: Get analytics and statistics for a pool
  • tinyman_get_pool_creation_quote: Generate quote for creating a new pool

Trading Operations

  • tinyman_get_swap_quote: Generate quotes for asset swaps with support for:
    • Fixed input amount swaps
    • Fixed output amount swaps
    • Slippage calculations

Liquidity Management

  • tinyman_get_liquidity_quote: Generate quotes for adding liquidity
    • Supports single and dual asset deposits
    • Calculates expected pool tokens
  • tinyman_get_remove_liquidity_quote: Generate quotes for removing liquidity
    • Supports proportional and single-asset withdrawals
    • Calculates expected asset returns

Asset Operations

  • tinyman_get_asset_optin_quote: Generate quote for opting into an asset
  • tinyman_get_validator_optin_quote: Generate quote for opting into a validator
  • tinyman_get_validator_optout_quote: Generate quote for opting out of a validator

All tools support both Tinyman v1.1 and v2 protocols, with v2 being the default version where applicable.

Project Structure

packages/
  โ”œโ”€โ”€ client/         # Client implementation (WIP)
  โ””โ”€โ”€ server/         # MCP server implementation

Development

# Install dependencies
npm install

# Build all packages
npm run build

# Clean build artifacts
npm run clean