Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

πŸ§‘πŸ»β€πŸ’» MCP Server for @antvis visualization development, which provides documentation context and examples for visualization developers.

License

Notifications You must be signed in to change notification settings

antvis/mcp-server-antv

Repository files navigation

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

mcp-server-antv Technical Architecture

Supports G2, G6, and F2 libraries for declarative visualization workflows, with S2, X6, L7, and more (including AVA, ADC, and G) coming soon.

✨ 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

Install in 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:

7.24.5.mp4

🧰 Tools Overview

Tool Functionality
extract_antv_topic Extract user intent, detects library (G2/G6/F2), and infers task complexity.
query_antv_document fetch 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.

About

πŸ§‘πŸ»β€πŸ’» MCP Server for @antvis visualization development, which provides documentation context and examples for visualization developers.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 6

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /