aptos-mcp
The Aptos MCP Server enables developers to interact with Aptos documentation and build full-stack Aptos blockchain applications.
Create Aptos Projects: Set up new projects (fullstack, contract, or client) using the Aptos CLI
Generate Components: Create new components for Aptos projects
Test Contracts: Test Aptos Move contracts with function-specific testing
Create Indexers: Build indexer projects for transaction/event processing
Create Gas Stations: Develop fee sponsorship projects
Generate ABIs: Produce TypeScript or JSON ABI interfaces for Move contracts
Browse Documentation: Search and navigate Aptos documentation
Develop with Claude Desktop: Integrate with Claude Desktop for streamlined workflows
Enables access to Aptos documentation repositories with optional GitHub token support for increased API rate limits.
Supports creating Aptos client projects that use Node.js for blockchain interaction.
Supports generating React components for Aptos blockchain applications, such as wallet connection interfaces.
Provides tools for generating TypeScript ABI interfaces and bindings from Move contracts to facilitate frontend integration.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@aptos-mcp create a new Aptos fullstack project called 'nft-marketplace'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: Dedalus MCP Documentation Server
Installation
Prerequisites
Python 3.10 or later
Node.js and npm
Aptos CLI (for some tooling features)
Setup
Install the mcp package:
uv add "mcp[cli]"
# or
pip install "mcp[cli]"Clone this repository:
git clone https://github.com/yourusername/aptos-mcp-server.git
cd aptos-mcp-serverInstall dependencies:
uv add httpx
# or
pip install httpx(Optional) Set GitHub token for increased API rate limits:
export GITHUB_TOKEN=your_github_tokenUsing with Claude Desktop
Install Claude Desktop from claude.ai/download
Add the Aptos MCP Server to your Claude Desktop configuration:
mcp install aptos_mcp_server.pyOr 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"
]
}
}
}Restart Claude Desktop
Development
Run the server in development mode with the MCP Inspector:
mcp dev aptos_mcp_server.pyUsage
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
Available Tools
6 toolsaptos_abi_generateC
Generate ABI for an Aptos contract.
Args:
contract_path: Path to the contract directory
output_format: Format of the output (ts, json)
Inputs: contract_path (required), output_format.
create_aptos_indexerC
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)
Inputs: project_name (required), processor_type.
create_aptos_projectC
Create a new Aptos project using the Aptos CLI.
Args:
project_name: Name of the project
project_type: Type of project (fullstack, contract, client)
Inputs: project_name (required), project_type.
create_gas_stationB
Creates a new Aptos gas station (fee sponsorship) project.
Args:
project_name: Name of the gas station project
Inputs: project_name (required).
generate_aptos_componentC
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
Inputs: component_type (required), component_name (required), project_dir (required), options.
test_aptos_contractC
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
Inputs: contract_path (required), function_name, args.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no overlap: generating ABI, creating indexers, creating projects, creating gas stations, generating components, and testing contracts. The descriptions specify different resources and actions, making misselection unlikely.
The naming follows a consistent verb_noun pattern with 'aptos' as a prefix (e.g., create_aptos_project, generate_aptos_component), except for 'aptos_abi_generate' which uses noun_verb order. This minor deviation slightly breaks the pattern but maintains overall readability.
With 6 tools, the count is well-scoped for an Aptos development server, covering key operations like project setup, component generation, and testing. Each tool earns its place without feeling excessive or insufficient for the domain.
The toolset covers creation and testing aspects well but has notable gaps in lifecycle management, such as updating or deleting projects/components, and lacks deployment or interaction tools (e.g., deploy_contract, call_function). This limits full workflow coverage for Aptos development.
Related MCP Connectors
MCP server for agentverse documentation, generated by doc2mcp.
MCP server for Klever blockchain smart contract development.
The official MCP server for Capawesome documentation and Capawesome Cloud.
Related MCP Servers
AlicenseBqualityDmaintenanceEnables users to manage API keys and perform Aptos Build actions through MCP-compatible interfaces like Claude and Cursor. This server facilitates development workflows on the Aptos blockchain by integrating directly with the Aptos Build platform.2283 npm13Apache 2.0- AlicenseAqualityDmaintenanceAn MCP server that serves documentation and enables AI-powered search, Q\&A, and document analysis for developer tools and guides.54MIT
- AlicenseAqualityDmaintenanceMCP server for Shelby Protocol that enables AI agents to read, write, and manage files on decentralized storage (Aptos) through tools like upload, download, list, delete, and account info.51MIT
- AlicenseNot gradedqualityDmaintenanceAptos MCP is a comprehensive Model Context Protocol (MCP) server implementation for the Aptos blockchain, compatible with MCP clients like Claude Desktop or Cursor.ai. It provides a complete DeFi toolkit covering major Aptos protocols including pool discovery, lending, DEX operations, perpetual trading, liquid staking, and cross-protocol portfolio management.25 npmMIT