Skip to main content
Glama
VRChat MCP Server

VRChat MCP Server

by sawa-zen

VRChat MCP

npmバージョン ライセンス: MIT

日本語|韓国語

このプロジェクトは、VRChat APIと連携するためのModel Context Protocol(MCP)サーバーです。標準化されたプロトコルを用いて、VRChatから様々な情報を取得できます。

概要

VRChat MCPサーバーは、VRChatのAPIエンドポイントに構造化された方法でアクセスする方法を提供します。ユーザー認証、ユーザーおよびフレンド情報の取得、アバターおよびワールドデータへのアクセスなど、幅広い機能をサポートしています。

Related MCP server: VRChat MCP OSC

使用法

サーバーを起動するには、必要な環境変数が設定されていることを確認してください。

export VRCHAT_USERNAME=your_username
export VRCHAT_AUTH_TOKEN=your_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

コマンドソースコード

取得したトークンは非常に長い有効期限があるため、慎重に取り扱ってください。

次に、次のコマンドを実行します。

npx vrchat-mcp

これにより MCP サーバーが起動し、定義されたツールを通じて VRChat API と対話できるようになります。

Claude Desktopでの使用

このMCPサーバーをClaude Desktopで使用するために、 npx vrchat-mcp手動で実行する必要はありません。代わりに、Claude Desktopの設定ファイルに以下の設定を追加してください。

  • 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"
      }
    }
  }
}

その後、通常通りClaude Desktopを起動します。nodenvまたはnvmを使用する必要がある場合は、 npxコマンドのフルパスを指定する必要があるかもしれません。

利用可能なツール

このモデルコンテキストプロトコルサーバーは、次の VRChat 関連ツールを提供します。

ユーザー関連

  • vrchat_get_friends_list: 友達のリストを取得する

  • vrchat_send_friend_request: 友達リクエストを送信する

アバター関連

  • vrchat_search_avatars: アバターを検索

  • vrchat_select_avatar: 特定のアバターを選択して切り替える

世界関連

  • vrchat_search_worlds: ワールドを検索

  • vrchat_list_favorited_worlds: お気に入りに登録されたワールドのリストを取得する

インスタンス関連

  • vrchat_create_instance: 新しいインスタンスを作成する

  • vrchat_get_instance: 特定のインスタンスの情報を取得する

グループ関連

  • vrchat_search_groups: グループを検索

  • vrchat_join_group: グループに参加する

お気に入り関連

  • vrchat_list_favorites: お気に入りのリストを取得する

  • vrchat_add_favorite: 新しいお気に入りを追加する

  • vrchat_list_favorite_groups: お気に入りのグループのリストを取得する

招待関連

  • vrchat_list_invite_messages: 招待メッセージのリストを取得する

  • vrchat_request_invite: 招待をリクエストする

  • vrchat_get_invite_message: 特定の招待メッセージを取得する

通知関連

  • vrchat_get_notifications: 通知のリストを取得する

デバッグ

まず、プロジェクトをビルドします。

npm install
npm run build

MCPサーバーはstdio経由で実行されるため、デバッグが困難になる場合があります。最適なデバッグエクスペリエンスを得るには、MCP Inspectorの使用を強くお勧めします。

次のコマンドを使用して、npm 経由で MCP Inspector を起動できます。

npx @modelcontextprotocol/inspector "./dist/main.js"

環境変数が適切に設定されていることを確認してください。

起動すると、ブラウザでアクセスしてデバッグを開始できる URL がインスペクタに表示されます。

出版

パッケージの新しいバージョンを公開するには、次の手順に従います。

  1. メインブランチから最新のコードを取得する

    git checkout main
    git pull origin main
  2. パッケージをビルドする

    npm run build
  3. npmに公開する

    npm publish
  4. 変更をリモートリポジトリにプッシュする

    git push origin main --tags

貢献

貢献を歓迎します!改善やバグ修正が必要な場合は、リポジトリをフォークしてプルリクエストを送信してください。

ライセンス

このプロジェクトはMITライセンスの下で提供されています。詳細はLICENSEファイルをご覧ください。

Available Tools

18 tools
vrchat_add_favoriteC

Add a new favorite.

Inputs: type (required), favoriteId (required), tags (required).

vrchat_create_instanceC

Create a new instance of a world.

Inputs: worldId (required), type (required), region, ownerId, +7 more.

vrchat_get_current_userB

Retrieve your own VRChat user information

Inputs: no named parameters.

vrchat_get_friends_listC

Retrieve a list of VRChat friend information. The following information can be retrieved: - "bio" - "bioLinks" - "currentAvatarImageUrl" - "currentAvatarThumbnailImageUrl" - "currentAvatarTags" - "developerType" - "displayName" - "fallbackAvatar" - "id" - "isFriend" - "last_platform" - "last_login" - "profilePicOverride" - "pronouns" - "status" - "statusDescription" - "tags" - "userIcon" - "location" - "friendKey"

Inputs: offset, n, offline.

vrchat_get_instanceA

Get information about a specific instance. Note: Detailed information about instance members is only available if you are the instance owner.

Inputs: worldId (required), instanceId (required).

vrchat_get_invite_messageA

Returns a specific invite message. Admin Credentials are required to view messages of other users!

Message type refers to a different collection of messages:
- message = Message during a normal invite
- response = Message when replying to a message
- request = Message when requesting an invite
- requestResponse = Message when replying to a request for invite

Inputs: userId (required), slot (required), messageType.

vrchat_get_notificationsC

Retrieve a list of VRChat notifications.

Inputs: type, sent, hidden, after, +2 more.

vrchat_join_groupC

Join a VRChat group by ID

Inputs: groupId (required).

vrchat_list_favorited_worldsC

List favorited worlds by query filters.

Inputs: featured, sort, n, order.

vrchat_list_favorite_groupsB

Returns a list of favorite groups owned by a user.

Inputs: n, offset, ownerId.

vrchat_list_favoritesC

Returns a list of favorites.

Inputs: n, offset, type, tag.

vrchat_list_invite_messagesA

Returns a list of all the users Invite Messages. Admin Credentials are required to view messages of other users!

Inputs: userId (required), messageType (required).

vrchat_request_inviteA

Request an invite from a user. IMPORTANT: Always obtain explicit permission from the user before sending an invite request. Note that invite requests cannot be sent to users in private instances. Returns the Notification of type requestInvite that was sent.

Inputs: userId (required), instanceId (required), messageSlot (required).

vrchat_search_avatarsB

Search and list avatars by query filters. You can only search your own or featured avatars. It is not possible as a normal user to search other people's avatars.

Inputs: featured, sort, user, userId, +9 more.

vrchat_search_groupsC

Search VRChat groups by name or shortCode

Inputs: query (required), offset, n.

vrchat_search_worldsC

Search and list worlds by query filters.

Inputs: featured, sort, user, userId, +6 more.

vrchat_select_avatarC

Select and switch to a specific avatar by its ID.

Inputs: avatarId (required).

vrchat_send_friend_requestC

Send a friend request to another user.

Inputs: userId (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 18 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific VRChat resources like users, instances, favorites, and searches, with clear boundaries. However, vrchat_list_favorites and vrchat_list_favorited_worlds/vrchat_list_favorite_groups could cause minor confusion as they overlap in listing favorites, though descriptions help differentiate them.

    Naming Consistency5/5

    All tools follow a consistent vrchat_verb_noun naming pattern, using snake_case throughout. This predictability makes it easy to understand each tool's function at a glance, with no deviations in style or structure.

    Tool Count4/5

    With 18 tools, the count is slightly high but reasonable for covering VRChat's social and world management features. It includes core operations like user management, instance handling, and searches, though it might feel a bit heavy compared to more focused servers.

    Completeness4/5

    The tool set covers key VRChat workflows such as user interactions (friends, invites), world/avatar management (search, select, create), and favorites, with good CRUD-like operations. Minor gaps include updating or deleting favorites or instances, but agents can work around these with the available tools.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      A
      maintenance
      A Discord Model Context Protocol server that enables AI assistants to interact with Discord, providing functionality for sending messages, managing channels, handling forum posts, and working with reactions.
      52
      3,822 npm
      114
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that provides AI models with structured access to external data and services, acting as a bridge between AI assistants and applications, databases, and APIs in a standardized, secure way.
      2
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      A Model Context Protocol server that integrates with FoundryVTT, allowing AI assistants to interact with tabletop gaming sessions through natural language to query actors, roll dice, generate content, and manage game worlds.
      599 npm
      37
      MIT