mcp-server-antv

antvis/mcp-server-antv

3.3

If you are the rightful owner of mcp-server-antv and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

MCP Server AntV is a Model Context Protocol server designed for AI development and QA, providing AntV documentation context and code examples using the latest APIs.

Tools
  1. extract_antv_topic

    Extract user intent, detects library (G2/G6/F2), and infers task complexity.

  2. query_antv_document

    Fetch latest documentation and code examples with context.

MCP Server AntV npm Version smithery badge npm License

A Model Context Protocol (MCP) server designed for AI development and QA that provides AntV documentation context and code examples using the latest APIs.

Supports G2, G6, and F2 libraries for declarative visualization workflows, and S2, X6, and L7 on the way๏ฝž

โœจ Features

  • โœ… AntV 5.x Compatibility: Leverages the latest APIs for performance and modularity.
  • ๐Ÿงฉ Multi-Library Support: G2 (2D charts), G6 (graph/networks), and F2 (mobile charts).
  • ๐Ÿ” Smart Intent Extraction: Detects library usage and task complexity via extract_antv_topic.
  • ๐Ÿ“š Contextual Documentation: Fetches relevant AntV docs and code snippets with query_antv_document.

๐Ÿ› ๏ธ Quick Start

Requirements

  • Node.js >= v18.0.0
  • Cursor, VSCode, Cline, Claude Desktop or another MCP Client.

Connect to Cursor

Install MCP Server

Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server

{
  "mcpServers": {
    "mcp-server-antv": {
      "command": "npx",
      "args": ["-y", "@antv/mcp-server-antv"]
    }
  }
}

On Window system:

{
  "mcpServers": {
    "mcp-server-antv": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@antv/mcp-server-antv"]
    }
  }
}

Connect to VSCode

Pasting the following configuration into your VSCode ~/.vscode/mcp.json file is the recommended approach.

{
  "servers": {
    "mcp-server-antv": {
      "command": "npx",
      "args": ["-y", "@antv/mcp-server-antv"]
    }
  }
}

or command-line configuration

code --add-mcp "{\"name\":\"mcp-server-antv\",\"command\": \"npx\",\"args\": [\"-y\",\"@antv/mcp-server-antv\"]}"

๐Ÿงช Example Workflow

An example workflow.

๐Ÿงฐ Tools Overview

ToolFunctionality
extract_antv_topicExtract user intent, detects library (G2/G6/F2), and infers task complexity.
query_antv_documentfetch latest documentation and code examples with context7

๐Ÿ”จ Contributing

Clone the repo

git clone https://github.com/antvis/mcp-server-chart.git
cd mcp-server-chart

Install dependencies:

npm install

Build the server:

npm run build

Start the MCP server:

npm run start

๐Ÿ“„ License

MIT@AntV.