SZ

sawa-zen/vrchat-mcp

开发工具

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

71 stars 6 forks 质量 71 趋势 0MIT

sawa-zen/VRhat-MCP 是从 https://github.com/sawa-zen/vrchat-mcp. 导入的 MCP 服务器候选

概览

sawa-zen/VRhat-MCP 是从 https://github.com/sawa-zen/vrchat-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

日本語 |한국어

该项目是一个模型上下文协议(MCP)服务器,用于与VRChat API交互。它允许您使用标准化协议从VRChat中获取各种信息。

概述

VRChat MCP 服务器提供了一种结构化访问 VRChat API 端点的方式。它支持多种功能,包括用户认证、获取用户和朋友信息、访问头像和世界数据等。

用途

启动服务器时,确保你设置了必要的环境变量:

[!注]

如何获得AUTH TOKEN的获取

您可以使用以下命令登录并获取认证令牌:

命令源代码

请小心保管所获得的代币,因为它寿命非常长

然后,执行以下命令:

这会启动MCP服务器,让你通过定义的工具与VRChat API交互。

使用 Claude Desktop

要在 Claude Desktop 中使用该 MCP 服务器,无需手动运行 npx vrchat-mcp。相反,请将以下配置添加到您的 Claude Desktop 配置文件中:

  • MacOS:'~/库/应用支持/Claude/claude_desktop_config。

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

README

以下为原文 README 节选,完整内容请查看原文。

日本語 | 한국어

This project is a Model Context Protocol (MCP) server for interacting with the VRChat API. It allows you to retrieve various information from VRChat using a standardized protocol.

Overview

The VRChat MCP server provides a way to access VRChat’s API endpoints in a structured manner. It supports a wide range of functionalities, including user authentication, retrieving user and friend information, accessing avatar and world data, and more.

Usage

To start the server, ensure you have the necessary environment variables set:

export VRCHAT_USERNAME=your_username
export VRCHAT_AUTH_TOKEN=your_auth_token

[!NOTE]

How to obtain AUTH TOKEN

You can use the following command to login and obtain an auth token:

$ npx vrchat-auth-token-checker

VRChat Username: your-username
Password: ********

# If 2FA is enabled
2FA Code: 123456

# Success output
Auth Token: authcookie-xxxxx

Command source code

Please handle the obtained token with care as it has a very long lifetime

Then, run the following command:

npx vrchat-mcp

This will launch the MCP server, allowing you to interact with the VRChat API through the defined tools.

Usage with Claude Desktop

To use this MCP server with Claude Desktop, you do not need to run npx vrchat-mcp manually. Instead, add the following configuration to your Claude Desktop config file:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "vrchat-mcp": {
      "command": "npx",
      "args": ["vrchat-mcp"],
      "env": {
        "VRCHAT_USERNAME": "your-username",
        "VRCHAT_AUTH_TOKEN": "your-auth-token"
      }
    }
  }
}

Then, start Claude Desktop as usual. If you have to use nodenv or nvm, you may need to specify the full path to the npx command.

Available Tools

This Model Context Protocol server provides the following VRChat-related tools:

  • vrchat_get_friends_list: Get a list of friends
  • vrchat_send_friend_request: Send a friend request
  • vrchat_search_avatars: Search for avatars
  • vrchat_select_avatar: Select and switch to a specific avatar
  • vrchat_search_worlds: Search for worlds
在 GitHub 查看完整 README

安装

npx vrchat-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "vrchat-mcp": { "command": "npx", "args": ["vrchat-mcp"], "env": { "VRCHAT_USERNAME": "your-username", "VRCHAT_AUTH_TOKEN": "your-auth-token" } } } }