MetaAPP MCP Server

MetaAPP MCP Server

A comprehensive MCP server for MetaApp development, offering tools for project initialization, protocol exploration, and blockchain interaction.

Category
Visit Server

README

MetaAPP MCP Server

A comprehensive MCP (Model Context Protocol) service for MetaAPP development, providing tools for project initialization, protocol exploration, and blockchain interaction.

Features

  • Project Management: Initialize, preview, and build MetaApp projects from templates
  • Environment Detection: Check and guide Node.js and Git installation
  • Protocol Tools: Query and search MetaID protocols on blockchain
  • Documentation Access: Built-in MetaID and Metalet wallet API documentation
  • PIN Management: Fetch and analyze PIN data from blockchain
  • User Information: Query user profiles by address or MetaID
  • Prompt Templates: Pre-configured prompts for common MetaApp development tasks

Installation

Prerequisites

  • Node.js v20.19.1 or higher (recommended via NVM)
  • npm or yarn
  • Git

Install Dependencies

npm install

Development

Run in Development Mode

npm run dev

Build the Project

npm run build

Run Built Version

npm start

Process Management (PM2)

The server includes PM2 configuration for production deployment with auto-restart capabilities.

Start with PM2

npm run pm2:start

Stop PM2 Process

npm run pm2:stop

Restart PM2 Process

npm run pm2:restart

View Logs

npm run pm2:logs

Docker Deployment

Build Docker Image

npm run docker:build
# or
docker build -t metaapp-mcp-server .

Run Docker Container

npm run docker:run
# or
docker run -p 3000:3000 metaapp-mcp-server

MCP Tools

System Tools

  • get_assistant_metadata: Get complete server metadata including version and features

Documentation Tools

  • get_resource_tree: MetaID and Metalet wallet API documentation
  • get_manv1_api_resource: MAN V1 API capabilities and endpoints
  • get_manv2_api_resource: MAN V2 API capabilities and endpoints

Environment Tools

  • check_environment: Check if Node.js and Git are installed
  • install_node_guide: Installation guide for Node.js via NVM
  • install_git_guide: Installation guide for Git

Project Tools

  • init_project: Initialize a new MetaApp project from template
    • Parameters: project_name, project_description, target_directory
  • run_project: Run npm run dev to preview the project
    • Parameters: project_path
  • build_project: Build and package the project for deployment
    • Parameters: project_path

Protocol Tools

  • get_metaprotocol_list: Get list of MetaProtocols
    • Parameters: cursor (optional), size (optional)
  • search_protocol: Search for a specific protocol by name
    • Parameters: protocol_name
  • get_pin_detail: Get details of a specific PIN
    • Parameters: pin_id
  • get_pin_list_by_path: Get PIN list by protocol path
    • Parameters: path, cursor (optional), size (optional)
  • get_user_info: Get user information
    • Parameters: address_or_metaid

MCP Prompts

Available Prompts

  1. meta_app_developer_guide: Activate professional MetaApp developer mode
  2. init_metaapp_project: Initialize a new MetaApp project
    • Arguments: project_name, project_description
  3. explore_protocol: Explore and understand a MetaID protocol
    • Arguments: protocol_name
  4. deploy_metaapp: Deploy a MetaApp to the blockchain

Usage Example

With Claude Desktop

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "metaapp": {
      "command": "node",
      "args": ["/path/to/MetaAPP-Mcp/dist/index.js"]
    }
  }
}

Direct Usage

The server runs on stdio transport and communicates via standard input/output:

node dist/index.js

Project Structure

MetaAPP-Mcp/
├── src/
│   ├── config/           # Configuration files
│   ├── prompts/          # Prompt templates
│   ├── tools/            # Tool implementations
│   │   ├── system-tools.ts
│   │   ├── documentation-tools.ts
│   │   ├── project-tools.ts
│   │   └── protocol-tools.ts
│   ├── types/            # TypeScript type definitions
│   ├── utils/            # Utility functions
│   │   ├── helpers.ts
│   │   └── api-client.ts
│   └── index.ts          # Main server entry
├── dist/                 # Compiled JavaScript
├── logs/                 # PM2 logs
├── Dockerfile            # Docker configuration
├── ecosystem.config.cjs  # PM2 configuration
├── tsconfig.json         # TypeScript configuration
└── package.json          # Project metadata

API Endpoints

MetaID APIs

  • MAN V1: https://man.metaid.io/api
  • MAN V2: https://manapi.metaid.io

Key Resources

  • MetaID Docs: https://docs.metaid.io/
  • MetaID SDK: https://github.com/metaid-developers/metaid-sdk
  • MetaApp Template: https://github.com/metaid-developers/MetaApp-CLI
  • Metalet Wallet: https://metalet.space/
  • Deployment: https://metaweb-world.vercel.app

Development Workflow

Creating a New MetaApp

  1. Check Environment:

    Use: check_environment
    
  2. Initialize Project:

    Use: init_project
    Parameters: { target_directory: "/path/to/projects" }
    
  3. Explore Protocols:

    Use: search_protocol
    Parameters: { protocol_name: "simplenote" }
    
  4. Develop Features: Follow the protocol structure to implement your app

  5. Build for Deployment:

    Use: build_project
    Parameters: { project_path: "/path/to/project" }
    
  6. Deploy: Upload the generated zip file to https://metaweb-world.vercel.app

Troubleshooting

Node.js Not Found

Use the install_node_guide tool to get installation instructions for your platform.

Git Not Found

Use the install_git_guide tool to get installation instructions for your platform.

Build Errors

Ensure you're in the correct project directory and all dependencies are installed:

cd your-project
npm install
npm run build

Contributing

Contributions are welcome! Please follow these guidelines:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

MIT License - see LICENSE file for details

Support

  • GitHub Issues: Create an issue
  • MetaID Community: https://metaid.io/
  • Documentation: https://docs.metaid.io/

Credits

Built with:


MetaAPP MCP Server - Empowering MetaApp development with AI assistance

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
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured