Aptos MCP Server

Aptos MCP Server

A MCP server for interacting with Aptos documentation and creating full-stack Aptos blockchain applications.

Tlazypanda

Developer Tools
Visit Server

Tools

create_aptos_project

Create a new Aptos project using the Aptos CLI. Args: project_name: Name of the project project_type: Type of project (fullstack, contract, client)

generate_aptos_component

Generate a new component for an Aptos project. Args: component_type: Type of component (table, module, etc.) component_name: Name of the component project_dir: Project directory path options: Additional options as a string

test_aptos_contract

Test an Aptos Move contract using the Aptos CLI. Args: contract_path: Path to the contract directory or file function_name: Optional function to test specifically args: Optional list of arguments for the function

create_aptos_indexer

Creates a new Aptos indexer project based on the example processor. Args: project_name: Name of the indexer project processor_type: Type of processor (transaction, event)

create_gas_station

Creates a new Aptos gas station (fee sponsorship) project. Args: project_name: Name of the gas station project

aptos_abi_generate

Generate ABI for an Aptos contract. Args: contract_path: Path to the contract directory output_format: Format of the output (ts, json)

README

Aptos MCP Server

A Model Context Protocol (MCP) server for interacting with Aptos documentation and creating full-stack Aptos blockchain applications.

Features

  • 🔍 Browse and search Aptos documentation
  • 🔧 Create new Aptos projects (fullstack, contract, or client)
  • 🧩 Generate components for Aptos projects
  • 🧪 Test Aptos Move contracts
  • 📜 Generate TypeScript ABI interfaces for Move contracts

Installation

Prerequisites

  • Python 3.10 or later
  • Node.js and npm
  • Aptos CLI (for some tooling features)

Setup

  1. Install the mcp package:
uv add "mcp[cli]"
# or 
pip install "mcp[cli]"
  1. Clone this repository:
git clone https://github.com/yourusername/aptos-mcp-server.git
cd aptos-mcp-server
  1. Install dependencies:
uv add httpx
# or
pip install httpx
  1. (Optional) Set GitHub token for increased API rate limits:
export GITHUB_TOKEN=your_github_token

Using with Claude Desktop

  1. Install Claude Desktop from claude.ai/download

  2. Add the Aptos MCP Server to your Claude Desktop configuration:

mcp install aptos_mcp_server.py

Or manually edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "aptos-dev": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/aptos-mcp-server",
        "run",
        "aptos_mcp_server.py"
      ]
    }
  }
}
  1. Restart Claude Desktop

Development

Run the server in development mode with the MCP Inspector:

mcp dev aptos_mcp_server.py

Usage

Once connected to Claude Desktop, you can:

Browse Aptos Documentation

Ask Claude to browse through the Aptos documentation repository:

  • "Show me the Aptos documentation structure"
  • "Find information about Move modules in the Aptos docs"
  • "Get me the Table implementation documentation"

Create New Projects

Ask Claude to set up new Aptos projects:

  • "Create a new Aptos full-stack project called 'my-first-dapp'"
  • "Generate a Move smart contract for a marketplace"
  • "Set up a client-only Aptos project"

Generate Components

Ask Claude to generate components for your Aptos projects:

  • "Generate a React component for connecting to Aptos wallet"
  • "Create a Move table for storing user profiles"
  • "Make a client function for querying contract data"

Test and Generate ABIs

Ask Claude to test contracts and generate interfaces:

  • "Test my Aptos contract at ~/projects/my-dapp/move"
  • "Generate TypeScript bindings for my Move contract"

Example Queries

  • "Browse through the Aptos documentation"
  • "Search the Aptos docs for 'table'"
  • "Create a new Aptos fullstack project called 'nft-marketplace'"
  • "Generate a Move module for a token contract"
  • "Create a React component for wallet connection"
  • "Generate TypeScript ABI for my contract"
  • "Test my contract's withdraw function"

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
MCP Package Docs Server

MCP Package Docs Server

Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.

Featured
Local
TypeScript
Claude Code MCP

Claude Code MCP

An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.

Featured
Local
JavaScript
@kazuph/mcp-taskmanager

@kazuph/mcp-taskmanager

Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.

Featured
Local
JavaScript
Linear MCP Server

Linear MCP Server

Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.

Featured
JavaScript
mermaid-mcp-server

mermaid-mcp-server

A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.

Featured
JavaScript
Jira-Context-MCP

Jira-Context-MCP

MCP server to provide Jira Tickets information to AI coding agents like Cursor

Featured
TypeScript
Linear MCP Server

Linear MCP Server

A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Featured
JavaScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Featured
Python