GS

gregkop/sketchfab-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

48 stars 11 forks 质量 58 趋势 1

gregkop/sketchfab-mcp-server 是从 https://github.com/gregkop/sketchfab-mcp-server. 导入的 MCP 服务器候选服务器。

概览

gregkop/sketchfab-mcp-server 是从 https://github.com/gregkop/sketchfab-mcp-server. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

一个用于与Sketchfab的3D模型平台交互的模型上下文协议(MCP)服务器。该MCP允许您通过Claude或光标直接搜索、查看和下载Sketchfab的3D模型。

特色

  • 搜索3D模型:使用关键词、标签和分类在Sketchfab上查找模型
  • 查看型号详情:获取特定型号的全面信息
  • 下载模型:各种格式的下载模型(gltf、glb、usdz、源码)

先修条件

  • Node.js 18岁及以上
  • Sketchfab API 密钥(用于认证)

安装

  1. 克隆此仓库

  2. 安装依赖:

  3. 建设项目:

用途

运行MCP服务器

要提供你的 Sketchfab API 密钥,请使用 --api-key 参数:

或者,你可以设置 SKETCHFAB_API_KEY 环境变量:

可用工具

在Sketchfab上根据关键词和筛选搜索3D模型。

参数:

  • query(可选):文本搜索查询(例如,“car”、“house”、“character”)
  • tags(可选):按特定标签筛选(例如,[“动画”、“绑定”、“PBR”])
  • categories(可选):按类别筛选(例如:

本页由 AI 翻译,技术细节请以原文为准。

README

Sketchfab MCP Server

A Model Context Protocol (MCP) server for interacting with Sketchfab’s 3D model platform. This MCP allows you to search, view details, and download 3D models from Sketchfab directly through Claude or Cursor.

Features

  • Search for 3D Models: Find models on Sketchfab using keywords, tags, and categories
  • View Model Details: Get comprehensive information about specific models
  • Download Models: Download models in various formats (gltf, glb, usdz, source)

Prerequisites

  • Node.js 18 or higher
  • A Sketchfab API key (for authentication)

Installation

  1. Clone this repository
  2. Install dependencies:
    npm install
    
  3. Build the project:
    npm run build
    

Usage

Running the MCP Server

npm start

To provide your Sketchfab API key, use the --api-key parameter:

node build/index.js --api-key YOUR_API_KEY

Alternatively, you can set the SKETCHFAB_API_KEY environment variable:

export SKETCHFAB_API_KEY=YOUR_API_KEY
npm start

Available Tools

Search for 3D models on Sketchfab based on keywords and filters.

Parameters:

  • query (optional): Text search query (e.g., “car”, “house”, “character”)
  • tags (optional): Filter by specific tags (e.g., [“animated”, “rigged”, “pbr”])
  • categories (optional): Filter by categories (e.g., [“characters”, “architecture”, “vehicles”])
  • downloadable (optional): Set to true to show only downloadable models
  • limit (optional): Maximum number of results to return (1-24, default: 10)

2. sketchfab-model-details

Get detailed information about a specific Sketchfab model.

Parameters:

  • modelId: The unique ID of the Sketchfab model

3. sketchfab-download

Download a 3D model from Sketchfab.

Parameters:

  • modelId: The unique ID of the Sketchfab model to download
  • format (optional): Preferred format to download the model in (gltf, glb, usdz, source)
  • outputPath (optional): Local directory or file path to save the downloaded file

Using with Cursor

  1. Go to Cursor Settings -> MCP -> Add new MCP server
  2. Configure your MCP:
    • Name: Sketchfab MCP
    • Type: command
    • Command: node /path/to/build/index.js --api-key YOUR_API_KEY

Using with Claude Desktop

Add the following MCP config to your Claude Desktop configuration:

{
  "mcpServers": {
    "sketchfab": {
      "command": "node",
      "args": ["/path/to/build/index.js", "--api-key", "YOUR_API_KEY"]
    }
  }
}

Environment Variables

You can set the following environment variables:

  • SKETCHFAB_API_KEY: Your Sketchfab API key (alternative to passing it with the --api-key parameter)

License

ISC

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "sketchfab": { "command": "node", "args": ["/path/to/build/index.js", "--api-key", "YOUR_API_KEY"] } } }