MCP Catalogs
首页

mcp-server-chart vs swiftlens

并排对比,帮你在这两个 MCP server 之间做选择。

mcp-server-chart
by antvis
swiftlens
by swiftlens
Stars★ 4,068★ 124
30天用量10,239
综合分8444
官方
分类
AI / LLM 工具开发者工具效率工具
开发者工具AI / LLM 工具其它
实现语言TypeScriptPython
最近提交本月10 个月前

mcp-server-chart · 概述

使用 AntV 生成 26+ 种图表的 TypeScript MCP 服务器,支持多种图表类型和部署方式。

swiftlens · 概述

SwiftLens MCP 服务器通过 SourceKit-LSP 集成,让 AI 模型能以编译器级精度理解 Swift 代码库。

mcp-server-chart · 使用场景

  • 数据分析师从数据集中创建可视化报告
  • AI 助手根据用户请求生成自定义图表
  • Web 应用通过 HTTP API 嵌入可视化功能

swiftlens · 使用场景

  • AI 辅助的 Swift 应用代码重构和现代化
  • Swift 项目的深度代码分析和文档生成
  • 代码变更过程中的跨引用和影响分析

mcp-server-chart · 安装

安装

全局安装:

npm install -g @antv/mcp-server-chart

对于桌面应用(如 Claude Desktop、VSCode):

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

Windows 系统:

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

swiftlens · 安装

安装

前置条件

  • macOS(SourceKit-LSP 需要)
  • Python 3.10+
  • Xcode(从 App Store 完整安装)

快速开始

为 Claude Code / Gemini CLI 配置

添加到您的 JSON 配置文件的 mcpServers 部分:

{
  "mcpServers": {
    "swiftlens": {
      "command": "uvx",
      "args": ["swiftlens"]
    }
  }
}
构建 SourceKit LSP 索引

SwiftLens 需要索引存储进行跨文件分析。使用以下命令构建:

# 导航到您的 Swift 项目
cd /path/to/your/swift/project

# 使用索引构建
swift build -Xswiftc -index-store-path -Xswiftc .build/index/store

**重要**:当您添加新的 Swift 文件、更改公共接口或发现缺少符号引用时,需要重新构建索引。

对比内容由 README + GitHub 公开数据自动生成,定期更新。