Sponsored by Deepsite.site

Odinfun Mcp

Created By
valhallaguide7 months ago
Content

odinfun-mcp

odinfun-mcp is a server implementation for Odin.fun based on the Model Context Protocol (MCP). It provides canister asset management and OdinFun API tools, suitable for blockchain asset management and data query scenarios.

This document is also available in 简体中文 and 繁體中文.

Features

  • Canister Asset Management Tools

    • Query balance, withdraw, create new tokens
    • Buy/sell tokens with BTC, buy/sell by amount
    • Add/remove liquidity
  • OdinFun API Tools

    • User identity authentication, change username, post comments
    • Query Odin.fun token list, market data, candlesticks, holders, liquidity, comments, etc.
    • Query user assets, created/favorited tokens, liquidity, activity records, and more

Installation

npm install odinfun-mcp

Usage

  1. Build the project

    npm run build
    
  2. Start the server

    The server supports three startup modes:

    • stdio mode (default) - For CLI applications and integration:

      npm start
      # or
      node dist/server.js
      

      This uses stdin/stdout for communication, suitable for command-line tools and integration with applications that support stdio-based MCP connections.

    • HTTP+SSE mode - For web applications and modern clients (add --sse parameter):

      node dist/server.js --sse
      

      This starts an HTTP server on port 3000 with SSE endpoints:

      • /sse - SSE connection endpoint
      • /messages?sessionId=<id>&mode=sse - Message handling endpoint
      • / - Server status endpoint
    • HTTP+Streamable mode - For applications that need streamable responses (add --streamable parameter):

      node dist/server.js --streamable
      

      This starts an HTTP server on port 3000 with streamable endpoints:

      • /stream - Stream connection endpoint
      • /messages?sessionId=<id>&mode=streamable - Message handling endpoint
      • / - Server status endpoint

    Note: Both SSE and Streamable modes can be enabled simultaneously:

    node dist/server.js --sse --streamable
    
  3. Integrate with your MCP project
    You can import and register these tools in your own MCP server project, or directly run the server provided by this package.

Main Exports & Entry

  • Entry file: dist/server.js
  • Type declarations: dist/server.d.ts

Main Tools Overview

canisterTools

  • canister_getBalance: Query token balance
  • canister_withdraw: Withdraw tokens
  • canister_createToken: Create new token
  • canister_buyTokenWithBtc / canister_sellTokenForBtc: Buy/sell tokens with BTC
  • canister_buyTokenAmount / canister_sellTokenAmount: Buy/sell tokens by amount
  • canister_addLiquidity / canister_removeLiquidity: Add/remove liquidity

odinFunTools

OdinFun API tools are now organized by functional modules for easier use and better AI integration. All tool names are standardized and grouped as follows:

System Tools

  • odinapi_getPriceUnitInfo: Get information about price units in Odin.fun API, helping understand how to interpret price values
  • odinapi_getFaqInfo: Get official FAQ information about Odin.fun, including details about token pricing, AMM, bonding curve, and platform functionality
  • odinapi_enhancedResponse: Call any Odin.fun API method and automatically enhance the response with price_sats and price_usd fields

Authentication Tools

  • odinapi_authIdentity: Authenticate using ICP identity (Ed25519KeyIdentity)
  • odinapi_identity_postComment: Post a comment on a token

Market Tools

  • odinapi.market.token.getInfo: Get detailed token information (price, volume, holders, etc.)
  • odinapi.market.token.list: List tokens with filtering and sorting
  • odinapi.market.price.getBTC: Get current BTC price in USD
  • odinapi.market.price.getHistory: Get token price history (candlestick data)
  • odinapi.market.trade.list: Get trade records for a token
  • odinapi.market.liquidity.getInfo: Get liquidity information for a token
  • odinapi.market.liquidity.getUserPositions: Get user's liquidity positions
  • odinapi_comment_getBTCPrice: Get current BTC price in USD
  • odinapi_comment_getTokens: Get recently active Odin.fun tokens
  • odinapi_comment_getTokensByHighestMarketcap: Get Odin.fun tokens with highest market cap
  • odinapi_token_getTradesByTime: Get token trades by time range
  • odinapi_token_getTradesByUser: Get token trades by specific user

User Tools

  • odinapi.user.profile.getInfo: Get user profile information
  • odinapi.user.profile.list: List users (with search)
  • odinapi.user.assets.getBalances: Get all token balances for a user
  • odinapi.user.assets.getTokenBalance: Get balance for a specific token
  • odinapi.user.assets.getCreatedTokens: Get tokens created by the user
  • odinapi.user.activity.list: Get user activity history
  • odinapi.user.favorite.list: Get user's favorite tokens
  • odinapi.user.favorite.toggle: Add or remove a token from favorites

Social Tools

  • odinapi.social.comment.list: Get comments for a token
  • odinapi.social.comment.post: Post a comment on a token
  • odinapi.social.activity.feed: Get recent activities across all tokens
  • odinapi.social.activity.getTokenActivities: Get activities for a specific token

Common/Utility Tools

  • odinapi.tools.price.convert: Convert price between sats and USD
  • odinapi.tools.price.getBTC: Get current BTC price in USD
  • odinapi.tools.search.global: Search across all entities (tokens, users, etc.)
  • odinapi.tools.enhance.tokenData: Enhance token data with price, liquidity, etc.
  • odinapi.tools.enhance.userData: Enhance user data with balances, activities, favorites, etc.

All tool names and parameters are now standardized and documented in code. See the codebase for full parameter details and usage examples.

License

MIT

Server Config

{
  "mcpServers": {
    "odinfun-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "odinfun-mcp"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
WindsurfThe new purpose-built IDE to harness magic
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
CursorThe AI Code Editor
Serper MCP ServerA Serper MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Tavily Mcp
Playwright McpPlaywright MCP server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
ChatWiseThe second fastest AI chatbot™
Amap Maps高德地图官方 MCP Server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
DeepChatYour AI Partner on Desktop