aptos-mcp
Aptos MCP 服务器
用于与 Aptos 文档交互并创建全栈 Aptos 区块链应用程序的模型上下文协议 (MCP) 服务器。
特征
🔍 浏览和搜索 Aptos 文档
🔧 创建新的 Aptos 项目(全栈、合同或客户端)
🧩 为 Aptos 项目生成组件
🧪 测试 Aptos Move 合约
📜 为 Move 合约生成 TypeScript ABI 接口
Related MCP server: Dedalus MCP Documentation Server
安装
先决条件
Python 3.10 或更高版本
Node.js 和 npm
Aptos CLI(用于某些工具功能)
设置
安装 mcp 包:
uv add "mcp[cli]"
# or
pip install "mcp[cli]"克隆此存储库:
git clone https://github.com/yourusername/aptos-mcp-server.git
cd aptos-mcp-server安装依赖项:
uv add httpx
# or
pip install httpx(可选)设置 GitHub 令牌以增加 API 速率限制:
export GITHUB_TOKEN=your_github_token与 Claude Desktop 一起使用
从claude.ai/download安装 Claude Desktop
将 Aptos MCP 服务器添加到您的 Claude Desktop 配置中:
mcp install aptos_mcp_server.py或者手动编辑~/Library/Application Support/Claude/claude_desktop_config.json (macOS) 或%APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"aptos-dev": {
"command": "uv",
"args": [
"--directory",
"/path/to/aptos-mcp-server",
"run",
"aptos_mcp_server.py"
]
}
}
}重启Claude桌面
发展
使用 MCP Inspector 以开发模式运行服务器:
mcp dev aptos_mcp_server.py用法
一旦连接到 Claude Desktop,您可以:
浏览 Aptos 文档
让 Claude 浏览 Aptos 文档库:
“向我展示 Aptos 文档结构”
“在 Aptos 文档中查找有关 Move 模块的信息”
“获取表格实现文档”
创建新项目
要求 Claude 设置新的 Aptos 项目:
“创建一个名为‘my-first-dapp’的 Aptos 全栈项目”
“为市场生成 Move 智能合约”
“设置仅限客户端的 Aptos 项目”
生成组件
要求 Claude 为您的 Aptos 项目生成组件:
“生成用于连接 Aptos 钱包的 React 组件”
“创建一个移动表来存储用户配置文件”
“制作一个查询合约数据的客户端函数”
测试并生成 ABI
要求Claude测试契约并生成接口:
“在 ~/projects/my-dapp/move 测试我的 Aptos 合约”
“为我的 Move 合约生成 TypeScript 绑定”
示例查询
“浏览 Aptos 文档”
“在 Aptos 文档中搜索‘table’”
“创建一个名为‘nft-marketplace’的 Aptos 全栈项目”
“为代币合约生成 Move 模块”
“创建用于钱包连接的 React 组件”
“为我的合约生成 TypeScript ABI”
“测试我的合约的提现功能”
执照
麻省理工学院
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides comprehensive access to MCP documentation through structured guides, full-text search, and interactive development workflows for building servers and clients.311MIT
- AlicenseAqualityDmaintenanceAn MCP server that serves documentation and enables AI-powered search, Q\&A, and document analysis for developer tools and guides.54MIT
- AlicenseAqualityCmaintenanceMCP 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
- Alicense-qualityDmaintenanceAptos 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.21MIT
Related MCP Connectors
MCP server for Klever blockchain smart contract development.
MCP server for accessing curated awesome list documentation
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tlazypanda/aptos-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server