vrchat_friends_search
Search friends by display name (read-only).
query必填maxResultsincludeOffline
io.github.BITRATE-Labs由 GitHub 账号 BITRATE-Labs 发布v0.1.16更新于 Nov 7, 2026
用于 VRChat 好友、世界、群组、活动、通知以及 VRCX 历史记录的 MCP 服务器。
AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。
MCP server for VRChat friends, worlds, groups, events, notifications, and VRCX history.
VRChat 的本地 MCP 服务;无需登录;STDIO;73 个工具。
暂无 AI 概览:以下信息来自注册中心条目和服务本身。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
参照 仓库 中的启动说明。
Unofficial local Model Context Protocol tools for VRChat friends, worlds, groups, events, notifications, status, invites, and local VRCX history.
VRChat MCP runs locally through stdio by default and also offers an opt-in loopback-only Streamable HTTP mode. Your VRChat auth cookies stay on your machine and default to your OS keychain, with file storage as the fallback when a keychain backend is unavailable. Curated write tools, generated read/write tools, and read-only VRCX local-history tools are available by default; use your MCP client or agent harness to approve account-changing tool calls.
This project is unofficial and is not affiliated with VRChat Inc.
VRChat does not provide a public OAuth flow for third-party API applications. VRChat's Creator Guidelines say API applications should not request or store VRChat login credentials, auth tokens, or session data, should identify themselves with a clear User-Agent, should cache/back off instead of sending unmetered requests, and should not act on behalf of another user.
This project is therefore intended only as a local, user-controlled personal tool. Do not run it as a hosted/public MCP service, do not collect anyone else's credentials or cookies, do not automate spam or harassment, and do not use it to evade VRChat enforcement or moderation. Use write tools only for actions you would intentionally perform yourself in VRChat.
Requirements:
keytar, better-sqlite3).On headless Linux or containers without a keychain daemon such as libsecret, set VRCHAT_MCP_COOKIE_STORE=file for explicit persistent cookie storage.
The npm package is the normal install path:
The server is also published to the official MCP Registry as io.github.BITRATE-Labs/vrchat-mcp.
Most clients use one of these shapes. No environment variables are required for the default setup.
OpenCode uses an array-valued command field.
Add this to ~/.config/opencode/opencode.json:
These clients usually split the executable into command plus args.
Use this in clients that expect an mcpServers object:
VS Code uses a servers object instead of mcpServers.
Use this in .vscode/mcp.json:
Add this to ~/.codex/config.toml or .codex/config.toml:
If your Windows client cannot spawn npx directly, use cmd as the command and put /c, npx, -y, and @basicbit/vrchat-mcp in the argument list.
Use native Streamable HTTP when an MCP client needs to connect to a long-running local server instead of spawning its own stdio child process. STDIO remains the default and recommended setup for ordinary desktop clients.
HTTP mode:
127.0.0.1.http://127.0.0.1:8765/mcp by default.Authorization: Bearer <token> on every MCP request.Generate a secret and launch the server in PowerShell:
Then configure the MCP client to use http://127.0.0.1:8765/mcp and send the token from VRCHAT_MCP_HTTP_BEARER_TOKEN as a bearer token. Keep the token in an environment variable or secret store; do not put it in a URL or commit it to a client configuration.
CLI overrides:
The HTTP listener deliberately cannot bind to a LAN or public interface. Public hosting remains unsupported because VRChat does not provide the OAuth/account-isolation model needed for a hosted personal-account service.
After adding the server to your MCP client, ask it to call vrchat_auth_begin. The tool returns a local browser login URL.
After logging in, call vrchat_auth_status to confirm the session. By default, cookies are stored in the OS keychain so the login survives MCP server restarts. If the OS keychain is unavailable, VRChat MCP falls back to file storage.
Do not ask another person to use this login flow for you. Do not send the local login URL, cookies, or session files to hosted tools or third-party services.
Useful auth tools:
vrchat_auth_begin: start local browser login.vrchat_auth_status: check whether the server is logged in.vrchat_auth_logout: clear the stored session.Browser login needs a person. VRChat's twoFactorAuth cookie lasts 30 days, and changing an account's 2FA method revokes its session immediately, so an unattended deployment would otherwise need someone to log in again each time. For an account you own and operate with authenticator (TOTP) 2FA, such as a dedicated bot account, the server can log itself back in.
Set all three variables to turn it on. If any of them is missing or empty, nothing changes.
When a VRChat API request returns 401, the server logs in once with the password and a freshly generated TOTP code, saves the new cookies to the configured cookie store, and retries the request once. If VRChat asks for an email code instead of TOTP, the server submits no code and returns the normal 401 error with a note to use vrchat_auth_begin. VRChat only reveals the 2FA method after the password step, so that still counts as a failed attempt for the backoff below.
Automatic logins are rate limited, and the limit is persisted so it holds when the host spawns a fresh server process for every call:
<cookie file>.autologin.json (mode 0600), beside the configured cookie file path. Keychain storage uses the same path. A short-lived .lock file stops two processes from claiming the same attempt. If the record cannot be written, the server does not try to log in.VRCHAT_MCP_COOKIE_STORE=memory there is no file, so the limit lives in memory and only applies within one process. That is much weaker: with a process per call, every process would log in. Use file storage for headless deployments.The password, TOTP secret, generated codes, and cookie values are never logged or included in tool results or errors. vrchat_auth_logout still clears the session, but while the variables are set the next API call logs back in.
Some MCP hosts, OpenClaw included, replace the child environment with the server entry's env block instead of merging it into their own. Do not put the password or TOTP secret inline in the host config. Keep them in a root-owned env file with mode 0600 and point the host at a small wrapper script that loads the file and execs the server. The host must run the wrapper as a user that can read the file. Quote values that contain shell metacharacters. If the host's env block does not pass PATH, set it in the wrapper or use absolute paths.
Examples:
VRChat MCP exposes curated tools plus generated read/write/delete routers by default. Curated tools cover common tasks with compact, agent-friendly inputs and outputs.
Common curated tools include:
vrchat_mevrchat_friends_overviewvrchat_friends_searchvrchat_friend_detailsvrchat_worlds_searchvrchat_group_profilevrchat_events_upcomingvrchat_notifications_recentvrchat_instance_link_eventvrchat_gallery_image_uploadvrchat_invitevrchat_group_invitevrchat_friend_requestvrchat_boopvrcx_instances_recentGenerated OpenAPI API-gap coverage uses three router tools:
vrchat_read for available GET operations; pass operationId plus path/query/header/cookie values under params.vrchat_write for available POST/PUT/PATCH operations; pass operationId, params, and JSON payloads under body.vrchat_delete for available DELETE operations; pass operationId, params, and optional JSON payloads under body.Use vrchat_operations to list available generated operation IDs and vrchat_operation_details for exact per-operation params/body schemas.
Generated read and write tools are enabled by default. VRCHAT_MCP_DISABLE_GENERATED_READ_TOOLS=true hides vrchat_read. VRCHAT_MCP_DISABLE_GENERATED_WRITE_TOOLS=true hides both vrchat_write and vrchat_delete, which share the generated-write switch. JSON config can also narrow either surface to specific operation IDs; generatedWriteTools.operationIds covers DELETE operations too, so a list holding only POST/PUT/PATCH IDs also hides vrchat_delete:
When an operationIds list is empty and that generated tool class is enabled, all generated operations in that class are available through its router except hard-skipped operations and operations with curated replacements. Prefer curated tools for common workflows, but generated routers keep the local server capable as the VRChat API evolves without duplicating known curated coverage or exposing generated endpoints this client cannot reliably call.
See docs/tools-guide.md for a short guide and docs/tools.md for the generated catalog.
Curated write tools and generated write tools for API gaps are enabled by default so the local MCP server is usable from the first run. Your MCP client or agent harness is expected to control tool-call permission, approval, and denial for account-changing actions.
To force read-only mode, add this env fragment inside the server entry for your MCP client:
Only use write tools when you intend this local MCP server to perform VRChat account actions. Bulk social tools are capped and back off on 429s, but you are responsible for avoiding spam, harassment, or unwanted automation.
vrchat_gallery_image_upload uploads a validated static PNG to the signed-in account's personal gallery. It accepts only imagePath; group authorization is enforced later by the group post or event tool that attaches the returned file ID. Configure at least one absolute uploads.allowedRoots entry before using it.
For group write tools, you can restrict writes to specific group IDs with a JSON config file:
Then set VRCHAT_MCP_CONFIG_FILE to that file path in your MCP client config.
Configuration is optional. Defaults cover normal local use.
Common environment variables:
Example JSON config:
See src/config/defaults.json for all defaults.
Useful scripts:
npm run dev: run from src/index.ts.npm run start: run the built server from dist/.npm run dev -- --transport http: run the local Streamable HTTP server from source.npm run start -- --transport http: run the built local Streamable HTTP server.npm run mcp:login: start login through the local harness.npm run mcp:status: check auth through the local harness.npm run smoke:live: run the opt-in live smoke check.npm run generate:tools-docs: regenerate docs/tools.md.npm run generate:schemas: regenerate OpenAPI schemas.npm run mcpb:build: build a local MCPB bundle under mcpb/.Live E2E tests and LLM evals are opt-in. See docs/evals.md for details.
MIT. See LICENSE.
来源:README.md,提交 ece8147
Search friends by display name (read-only).
query必填maxResultsincludeOfflineList friends with cache-backed pagination (read-only). Defaults to online-only; set includeOffline=true to include offline friends.
maxItemsmaxPagespageSizedetailLevelincludeOfflineSummarize friends by status and location with enriched world/group info (read-only).
statusmaxLocationsstatusFilterincludeOfflineinstanceDetailLevelminInstanceUserCountGet a friend's profile, status, and location details by display name or userId (read-only).
nameuserIdincludeOfflineGet an avatar profile by avatarId (read-only).
fieldscompactavatarId必填maxArrayLengthEdit your own avatar metadata: name, description, releaseStatus, and content tags. Asset fields (assetUrl, unityPackageUrl, unityVersion, version) are unreachable — a bad value there repoints the avatar at the wrong build with no undo. Content tags: content_sex, content_adult, content_violence, content_gore, content_horror. Tags merge rather than replace, so author tags survive; clearContentTags strips every content_* tag, including ones this build does not know. CAUTION — releaseStatus is risky in BOTH directions; confirm intent before changing it. Going public can expose a creator’s work against their terms, leak a private avatar, or breach VRChat’s content policy depending on what the avatar contains. Going private breaks the avatar for everyone currently wearing it. Use dryRun to preview.
nameavatar必填dryRunaddTagsremoveTagsdescriptionreleaseStatusclearContentTagsDiscover public calendar events with optional category/tag filters (read-only).
tagsscopefieldscompactmaxItemsmaxPagespageSizecategoriesnextCursormaxArrayLengthfeaturedResultsnonFeaturedResults另有 4 个List calendar events in the upcoming window (read-only). Defaults to the next 7 days.
fromfieldscompactmaxItemsmaxPagespageSizewindowHoursmaxArrayLengthSearch calendar events by term (read-only).
fieldscompactmaxItemsmaxPagespageSizeutcOffsetsearchTerm必填maxArrayLengthCreate a group calendar event.
tagstitle必填endsAt必填groupId必填imageIdisDraftroleIdscategoryfeaturedparentIdstartsAt必填languages另有 10 个Edit the specified event. Recurring targets require targetKind.
tagstitleendsAtgroupId必填imageIdisDraftroleIdscategoryfeaturedparentIdstartsAtlanguages另有 11 个Follow or unfollow a group calendar event.
groupId必填calendarId必填isFollowing必填Delete a group calendar event after verifying whether the target is an occurrence or series.
groupId必填calendarId必填targetKind必填Read favorites, favorite groups, limits, or favorited avatars with compact outputs (read-only).
tagsorttypeviewnotagorderqueryoffsetuserIdownerIdfeaturedmaxItems另有 8 个Add a user, avatar, or world to a favorite group.
tags必填type必填targetId必填Remove a favorite by favorite record ID. Use vrchat_favorites to look up favoriteRecordId first.
favoriteRecordId必填Search groups by name or shortCode (read-only).
query必填maxItemsmaxPagespageSizeGet a group profile by groupId or shortCode (read-only).
fieldscompactgroupIdshortCodemaxArrayLengthList one page of compact group members by default. Use view=all only when a complete, cached snapshot is required (read-only, capped at 10,000).
sortviewoffsetroleIdgroupIdpageSizeshortCodeList group roles or role templates with compact fields (read-only).
viewgroupIdshortCodeAssign/remove member roles or create/update/delete group role definitions.
nameorderaction必填roleIduserIdgroupIdshortCodedescriptiongroupRoleIdpermissionsisSelfAssignableList group calendar events (read-only).
datefieldscompactgroupIdmaxItemsmaxPagespageSizeshortCodemaxArrayLengthGet a single group calendar event (read-only).
fieldscompactgroupIdshortCodecalendarId必填maxArrayLengthGet the next upcoming calendar event for a group (read-only).
fieldscompactgroupIdshortCodemaxArrayLengthList upcoming group events in a time window (read-only).
fromfieldscompactgroupIdmaxItemsmaxPagespageSizeshortCodewindowHoursmaxArrayLengthSummarize active group instances (read-only).
groupIdshortCodemaxInstancesList recent posts for a group (read-only).
groupIdmaxItemsmaxPagespageSizeshortCodepublicOnlyCreate a group post (announcement). Does not notify members unless sendNotification is true.
text必填title必填groupIdimageIdroleIdsshortCodevisibility必填sendNotificationUpdate a group post. Omitted fields keep their current values; pass roleIds: [] to clear role restrictions. VRChat replaces the whole post on edit, so this reads the most recent 300 posts to recover the fields you did not send. If the post is older than that window, supplying title, text, and visibility still lets the edit land, but it cannot preserve roleIds or imageId and the response reports mergedFromExisting: false. Editing does not re-notify members unless sendNotification is true.
texttitlepostId必填groupIdimageIdroleIdsshortCodevisibilitysendNotificationDelete a group post. Members already notified about it are not un-notified.
postId必填groupIdshortCodeCreate a new instance.
type必填region必填ageGategroupIdownerIdroleIdsworldId必填closedAthardCloseinviteOnlydisplayNamequeueEnabled另有 6 个Link an allowlisted group instance to its event without notifying.
groupId必填worldId必填calendarId必填instanceId必填Invite yourself or one/many users to an instance. Users may be usr_ ids or exact display names. Destination is here=true, a full location like "wrld_:instance", or worldId+instanceId. A bare instanceId is not accepted: VRChat needs the worldId and rejects the stripped form.
hereselfuserretryusersdryRunmessageworldIdlocationinstanceIdcontinueOnErroroverwriteMessageSlotInvite one or many users to a group. Users may be usr_ ids or exact display names. Requires groupId or shortCode. confirmOverrideBlock defaults false; pass true only to override an existing target-user block.
userretryusersdryRungroupIdshortCodecontinueOnErrorconfirmOverrideBlockSend friend requests to one or many users. Users may be usr_ ids or exact display names.
userretryusersdryRuncontinueOnErrorSend boops to one or many users. Users may be usr_ ids or exact display names.
userretryusersdryRunemojiIdemojiVersioncontinueOnErrorinventoryItemIdInvite yourself to an instance (low-risk write).
worldIdlocationinstanceIdInvite a user to an instance.
userId必填worldIdlocationinstanceIdmessageSlotInvite a user to your current instance. Requires only the target userId; resolves your current location automatically. If you only have a display name, run vrchat_friends_search first to get userId.
userId必填messageSlotGet your current status + description (read-only).
无需输入参数。
Set your status + description (write). Requires status or color (blue/green/orange/red); if both are provided they must agree. Defaults to current user.
colorstatususerIddescriptionCompact VRChat status-page overview: up/down state, graph min/max/current values, unresolved + recent incidents, and active + upcoming maintenance (read-only).
maxItemsrecentHoursincludeGraphsGet your profile (read-only). Use view=presence/summary/profile presets; provide fields to override. Optionally include a paged list of your groups.
viewfieldscompactgroupOffsetgroupMaxPagesgroupPageSizeincludeGroupsmaxArrayLengthGet a user profile (read-only). Optionally include a paged list of the user's groups.
fieldsuserIdcompactusernamegroupOffsetgroupMaxPagesgroupPageSizeincludeGroupsmaxArrayLengthList a user's groups (id + name only, cache-backed).
offsetuserIdmaxPagespageSizeusernameUpdate your profile fields (bio, bioLinks, pronouns, userIcon, booping, content filters). Status is preserved automatically.
biobioLinkspronounsuserIconcontentFiltersisBoopingEnabledUpload a validated static PNG to the signed-in VRChat account gallery. This does not attach the image to a group post or event.
imagePath必填Delete one exact image file owned by the signed-in account and tagged gallery. Existing posts, events, or other references may be affected. Does not check usage; the caller decides what to preserve.
fileId必填List every image in the signed-in account gallery with compact metadata and total count. Fetches all pages internally; reuse fileId when attaching existing artwork.
无需输入参数。
List recent notifications (read-only).
typeaftermaxItemsmaxPagespageSizeunreadOnlySearch worlds by name and return compact results (read-only).
tagsortnotagorderquery必填offsetfeaturedmaxItemsmaxPagespageSizeplatformincludeTags另有 3 个List favorited worlds with compact results (read-only).
tagsortnotagorderqueryoffsetuserIdfeaturedmaxItemsmaxPagespageSizeplatform另有 4 个Get a world profile by worldId or name (read-only).
namefieldscompactworldIdmaxArrayLengthSummarize world instances by access type and region (read-only).
nameworldIdDetect VRCX on this machine and report database path, active user, and DB version (read-only).
无需输入参数。
Get a VRCX user memo by userId (read-only).
userId必填Get a VRCX world memo by worldId (read-only).
worldId必填Get a VRCX avatar memo by avatarId (read-only).
avatarId必填List recent world visits from the VRCX gamelog (read-only). This reflects your local VRChat/VRCX activity history.
limitdaysBackList recent instance sessions for your active VRCX account (read-only). Derived from VRCX gamelog OnPlayerLeft entries.
limitdaysBackSummarize your relationship history with a user using VRCX logs: time spent, join count, and last seen (read-only).
userIddisplayNameList recent shared instance sessions with a user from VRCX logs (read-only). Use this for deep history; results are limited by default.
limituserIddisplayNameInvalidate cached data (local-only).
keyareascopeFetch API config (read-only).
pagefieldscompactincludeMetamaxArrayLengthGet current system time (read-only).
pagefieldscompactincludeMetamaxArrayLengthList VRChat OpenAPI operationIds and generated-tool availability for vrchat_read/vrchat_write/vrchat_delete.
kindviewlimitqueryLook up exact OpenAPI params and request body schema for a VRChat operationId.
operationId必填Begin login flow via local browser UI.
无需输入参数。
Auth status.
无需输入参数。
Logout and clear session.
无需输入参数。
Call an available generated VRChat GET operation by operationId. Use vrchat_operations and vrchat_operation_details to discover params.
pagefieldsparamscompactincludeMetaoperationId必填maxArrayLengthCall an available generated VRChat POST/PUT/PATCH operation by operationId. Use vrchat_operations and vrchat_operation_details to discover params/body.
bodyparamsoptionsincludeMetaoperationId必填Call an available generated VRChat DELETE operation by operationId. Use vrchat_operations and vrchat_operation_details to discover params/body.
bodyparamsoptionsincludeMetaoperationId必填已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
npx -y @basicbit/vrchat-mcp{ "mcp": { "vrchat": { "type": "local", "command": ["npx", "-y", "@basicbit/vrchat-mcp"], "enabled": true } }}{ "mcpServers": { "vrchat": { "command": "npx", "args": ["-y", "@basicbit/vrchat-mcp"] } }}{ "servers": { "vrchat": { "type": "stdio", "command": "npx", "args": ["-y", "@basicbit/vrchat-mcp"] } }}[mcp_servers.vrchat]command = "npx"args = ["-y", "@basicbit/vrchat-mcp"]startup_timeout_sec = 40$env:VRCHAT_MCP_HTTP_BEARER_TOKEN = node -e "console.log(require('node:crypto').randomBytes(32).toString('hex'))"npx -y @basicbit/vrchat-mcp --transport httpnpx -y @basicbit/vrchat-mcp --transport http --port 9000 --path /vrchat-mcp#!/bin/sh# /usr/local/bin/vrchat-mcp-botset -a. /etc/vrchat-mcp/bot.envset +aexec vrchat-mcp "$@"# /etc/vrchat-mcp/bot.env (owner root, mode 0600)VRCHAT_MCP_COOKIE_STORE=fileVRCHAT_MCP_COOKIE_FILE=/var/lib/vrchat-mcp/cookies.jsonVRCHAT_MCP_USERNAME='bot-account'VRCHAT_MCP_PASSWORD='...'VRCHAT_MCP_TOTP_SECRET='abcd efgh ijkl mnop qrst uvwx yz23 4567'Show my VRChat status and current location.Which friends are online, grouped by world?Search my friends for Alice and show their profile.Find public VRChat events happening today.Invite Bob to my current instance.Show recent worlds from my local VRCX history.{ "generatedReadTools": { "enabled": true, "operationIds": ["getAvatarStyles"] }, "generatedWriteTools": { "enabled": true, "operationIds": ["selectAvatar"] }}{ "env": { "VRCHAT_MCP_ALLOW_WRITES": "false" }}{ "groups": { "allowlist": ["grp_abc123"] }}{ "auth": { "cookieStore": "file" }, "writes": { "allow": false }, "http": { "port": 8765, "path": "/mcp", "maxSessions": 8, "rateLimitPerMinute": 300, "sessionIdleTimeoutMs": 1800000 }, "groups": { "allowlist": ["grp_abc123"] }, "uploads": { "allowedRoots": ["C:\\Users\\you\\Pictures\\VRChat Uploads"] }, "cache": { "enabled": true }, "vrcx": { "enabled": true }}git clone https://github.com/BITRATE-Labs/vrchat-mcp.gitcd vrchat-mcpnpm installnpm run buildnpm run check