B2match (unofficial)

io.github.barzoj由 GitHub 账号 barzoj 发布v0.2.1更新于 Oct 30, 2026

Unofficial read-only B2match events: agenda, participants, meetings, schedule, conversations

概览

AI 生成的概览

非官方的 B2match 活动只读 MCP 服务器,让助手浏览议程、参会者、机构、会议与消息。

可以做什么
  • 获取公开活动信息、议程、场次、场次参会者与讲者
  • 搜索并读取参会者资料、机构页面与市场机会
  • 列出已加入的活动、自身参会状态与个人日程
  • 查看会议、空闲时间与共同空档,并获取会议推荐
  • 列出会话与通知,完整消息记录需显式开启后才可用
适用场景
适合参加或组织 B2match 对接活动时使用:让助手查询议程、查找参会者或机构、查看个人日程与会议,或根据会话内容起草跟进消息。
运行要求
通过 npx 在本地运行,需要 Node.js 22 或更高版本。公开活动数据可匿名访问;个人数据需要 B2match 会话令牌,可通过 CLI 登录流程(专用 Chromium 配置完成 Google 登录)或 B2MATCH_TOKEN 环境变量提供。令牌存放于系统钥匙串或权限为 0600 的配置文件。需要访问 B2match API 的网络连接。
安装前请注意
使用 B2match 未公开的 GraphQL API,字段可能随时变化;本项目非官方,未获 B2match 认可。参会者资料属于他人个人数据,应仅在本地保存并遵守可见性规则。部分查询仍会改变服务端状态:获取会话消息会将其标记为已读,完整通知列表会重置未读计数;两者均需设置 B2MATCH_ALLOW_SIDE_EFFECT_READS 并显式确认参数。不要在命令行中传递令牌。

安装

在 SourceWeft 中

  1. 打开 控制台中的 B2match (unofficial),将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

b2match-mcp

[CI] [Coverage] [npm version] [License: MIT] [Node.js] [ToolSDK MCP Registry]

Read-only MCP server for the B2match event and matchmaking platform.

This package is designed to be run locally by the user via npx and stdio MCP transport.

Disclaimer: This project is unofficial and is not affiliated with, endorsed by, or supported by B2match. It uses B2match's undocumented web GraphQL API, so field availability can change without notice. Use it in accordance with B2match's Terms of Service and GDPR. Participant profiles can be other people's personal data — keep exports local, respect each event's visibility rules, and do not harvest or republish personal data.

Read-only and privacy guarantees

  • The MCP server sends only GraphQL query operations. Mutations and subscriptions are parsed and rejected before any network call.
  • Known "read-looking" write operations are explicitly blocked, including profile-view, mark-as-read, session-attendance, and bookmark mutations.
  • B2match can still update its own read/seen counters when certain query fields are selected. See Server-side side effects.
  • It never calls Plausible, Sentry, Google Analytics, HubSpot, LinkedIn pixel, or any non-B2match analytics endpoint.
  • It makes no external calls other than https://api.b2match.com/v4/query and the B2match Google login URL opened by the CLI.
  • No telemetry or analytics are collected by this package.
  • Tokens are never printed by tools or status commands.
  • Tokens are stored in the OS keychain when available, otherwise in a 0600 config file.

Install / run

Requires Node.js 22 or newer. On macOS with Apple Silicon, the recommended install path is npx; no native build step is required for the auth storage path.

bash
npx -y b2match-mcp

From a checkout:

bash
npm installnpm run buildnode dist/cli.js

MCP client config

Claude Desktop

json
{  "mcpServers": {    "b2match": {      "command": "npx",      "args": ["-y", "b2match-mcp"]    }  }}

Cursor

json
{  "mcpServers": {    "b2match": {      "command": "npx",      "args": ["-y", "b2match-mcp"]    }  }}

VS Code

Add to .vscode/mcp.json or user MCP settings:

json
{  "servers": {    "b2match": {      "type": "stdio",      "command": "npx",      "args": ["-y", "b2match-mcp"]    }  }}

For local development from this checkout:

json
{  "mcpServers": {    "b2match": {      "command": "node",      "args": ["/absolute/path/to/b2match-mcp/dist/cli.js"]    }  }}

Authentication

Public event data works anonymously. Personal data such as viewer profile, active events, meetings, schedule, conversations, notifications, and availability requires a locally stored B2match session token.

macOS / Linux login

bash
b2match-mcp login https://www.b2match.com/e/<event-slug># or: npx b2match-mcp login https://www.b2match.com/e/<event-slug>

The default command:

  1. Resolves the event anonymously and asks B2match for its Google login URL.
  2. Launches your installed Chrome, Chromium, Edge, or Brave as a separate process.
  3. Uses a dedicated persistent profile under the tool config directory, not your everyday browser profile.
  4. Opens a remote-debugging port on 127.0.0.1 for that dedicated profile only (not your everyday browser). The port is closed when login finishes or times out.
  5. Lets you complete Google sign-in and 2FA by hand. The CLI does not fill any form.
  6. Waits for a JWT on the event tab URL (www.b2match.com/e/<slug>?token=…) or the event session cookie, validates it with a cheap viewer query, stores it, and closes that browser window. Chrome can 404 the post-Google event page before a cookie is set; the URL token is the path that works in that case.

Repeat logins are usually one click because the dedicated profile keeps the Google session.

macOS may show a Keychain access prompt the first time the CLI stores or reads the token. Approve access for b2match-mcp/your terminal if you want Keychain storage. If access is denied or Keychain is unavailable, the CLI falls back to a private config file.

Paste-only / environment token

Use these only when the dedicated browser flow cannot run:

bash
b2match-mcp login --paste# or: npx b2match-mcp login --pasteB2MATCH_TOKEN='<session-cookie-value>' b2match-mcp

B2MATCH_TOKEN is used in memory and is not persisted. Do not pass tokens on the command line; that leaks them into shell history.

Status / logout

bash
b2match-mcp statusb2match-mcp logoutb2match-mcp logout --all

logout removes the stored B2match token only. logout --all also deletes the dedicated browser profile.

Dedicated browser profile

Login uses a dedicated Chromium profile at ~/.config/b2match-mcp/browser-profile (or $B2MATCH_MCP_CONFIG_DIR/browser-profile / $XDG_CONFIG_HOME/b2match-mcp/browser-profile). That profile keeps the Google session, so a later login is usually one click.

To wipe the Google session as well as the stored B2match token:

bash
b2match-mcp logout --all

To delete only the profile and keep the stored token:

bash
rm -rf ~/.config/b2match-mcp/browser-profile

logout without --all keeps the profile so the next login can reuse Google.

Storage locations

  • macOS: login Keychain via /usr/bin/security (b2match-mcp service, default account). After each save the CLI reads the item back; if the secret is missing or wrong it falls back to the private file and prints keychain read-back failed, stored in file.
  • Linux: secret-tool / libsecret when installed and unlocked.
  • Windows: private fallback file.
  • Fallback file: $B2MATCH_MCP_CONFIG_DIR/auth.json, $XDG_CONFIG_HOME/b2match-mcp/auth.json, or ~/.config/b2match-mcp/auth.json, written with 0600 permissions.
  • b2match-mcp status reports source: "keychain-unreadable" (with a re-login hint) when a Keychain item exists but is empty or unreadable, instead of pretending you are logged out with source: "none".
  • Dedicated browser profile: ~/.config/b2match-mcp/browser-profile (same config directory).

If a token is a JWT, the CLI records its exp claim as expiresAt. B2match also has opaque tokens, in which case lifetime cannot be known locally. A 401 on an authenticated viewer check is reported as invalid/expired and remembered for the process. Public tools then continue anonymously without deleting the stored token.

Troubleshooting login

  • No supported browser found: install Chrome, Chromium, Edge, or Brave, or use b2match-mcp login --paste.
  • Google blocks the window: finish sign-in in the dedicated window if possible; otherwise use --paste.
  • Timeout / 404 after Google: the CLI also reads a JWT from the event tab URL if Chrome 404s before a cookie is set. Finish sign-in and wait; or use --paste.
  • Keychain prompt denied: run b2match-mcp logout, then login again and approve the prompt; or set B2MATCH_MCP_DISABLE_KEYCHAIN=1 to use the private file fallback.
  • status shows keychain-unreadable: the Keychain item is empty or corrupt and no usable auth.json was found. Run b2match-mcp logout then login again. If a file token still works, status uses source: "file" and sets a warning about the Keychain item instead.
  • Wrong/expired token: run b2match-mcp logout, sign in again, and repeat login.

Tools

Public/anonymous:

  • get_event - event metadata, dates, registration window, login methods, and navigation. Numeric ids and slugs return the same fields.
  • list_participants - compact participant summaries with pagination and optional search. Set detail=true for the fuller list payload.
  • get_participant - one participant profile, without firing profile-view tracking.
  • list_organisations, get_organisation - organisation/participation pages. Menu paths such as /components/<id> are resolved automatically.
  • list_opportunities, get_opportunity - marketplace entries. Menu paths are resolved automatically; unknown opportunities return an MCP not-found error.
  • get_agenda, get_session, list_session_attendees, list_speakers.

Authenticated:

  • auth_status
  • list_my_events
  • my_participation
  • my_schedule
  • my_meetings - meetings by status; unfiltered responses use a compact availability summary unless detail=true
  • my_availability - merged free ranges per day by default; detail=true for the full timeslot grid
  • find_meeting_slots
  • meeting_recommendations
  • list_conversations - last-message previews; does not mark conversations as read
  • get_conversation - disabled by default because fetching messages marks the conversation as read; see side effects
  • list_notifications - unread/unseen counters by default; the full list resets unseen

Optional raw query:

  • graphql_read is registered only when B2MATCH_ALLOW_RAW=1. It still rejects non-query operations and, unless B2MATCH_ALLOW_SIDE_EFFECT_READS=1, queries that select messagesV2 or the notification list.

Server-side side effects

This client never sends B2match mutations such as MarkConversationAsSeen or ReadNotification. B2match can still mutate its own read/seen state when a query selects certain fields:

  • get_conversation (messagesV2) marks that conversation as read (unread-conversations count decreases).
  • list_notifications with the notifications(...) list field resets the unseen counter (unseen → 0). The unread counter is unchanged. Fetching notificationsCounter alone does not reset unseen.
  • list_conversations (including lastMessageV2) has no known side effects.

Gating:

  • Default list_notifications returns only unread/unseen counters.
  • get_conversation and the full notification list require B2MATCH_ALLOW_SIDE_EFFECT_READS=1 and an explicit tool argument (acknowledge_marks_read / acknowledge_marks_seen).
  • graphql_read rejects queries that select messagesV2 or the notifications list unless the same env var is set.

Use list_conversations when you only need the last message.

Each event-scoped tool accepts a current event URL (https://www.b2match.com/e/<slug>), a legacy event URL (https://<slug>.b2match.io), a bare slug, or a numeric event id.

Authenticated tools return an MCP error when no token is stored, with instructions to log in. They say the token is invalid or expired only after a stored token receives HTTP 401.

Development

bash
npm installnpm run buildnpm test

See CONTRIBUTING.md for lint, format, coverage, Conventional Commits, and the read-only guard.

Live smoke test against a public event (opt-in, not run in CI):

bash
B2MATCH_LIVE_SMOKE=1 B2MATCH_SMOKE_EVENT='https://www.b2match.com/e/<event-slug>' npm test -- tests/live-smoke.test.ts

The smoke test is skipped unless both environment variables are set.

Publishing

Releases are cut by Release Please from Conventional Commits on main. The same workflow (.github/workflows/release-please.yml) publishes with npm publish --provenance --access public when a release is created (OIDC trusted publishing only — no NODE_AUTH_TOKEN). Provenance requires a public repo. Configure npm trusted publishing against workflow release-please.yml. To republish an existing tag: gh workflow run release-please.yml -f publish_tag=vX.Y.Z. .github/workflows/publish.yml is a tip-of-branch manual republish only.

Verification status

Verified in this repo:

  • TypeScript build and unit tests.
  • Query-only enforcement, event identifier parsing, cookie-name helpers, dedicated-browser launch args, section-path resolution, compact participant summaries, and 401/auth-error policy.
  • Packed CLI --help / status.
  • Opt-in anonymous live smoke that exercises every public tool when B2MATCH_SMOKE_EVENT is provided.

Requires a real login on a real machine:

  • Dedicated-profile Google login, Keychain prompt, URL-token or cookie capture.
  • Authenticated tools: list_my_events, my_participation, schedule, meetings, availability, meeting slots, recommendations, conversations, and notifications.

License

MIT.

来源:README.md,提交 7ad311c

工具

22

auth_status

B2match auth status

Show whether a local B2match token is available and, when valid, who it belongs to. Never returns the token. Call this first when an authenticated tool (my_*, list_my_events, conversations, notifications) reports a login error; public tools work without a token.

无需输入参数。

list_my_events

List my B2match events

List events the logged-in viewer has joined, with ids/slugs usable as the event argument elsewhere. Requires login; use get_event for any single public event instead.

无需输入参数。

get_event

Get B2match event

Fetch public event metadata, dates, registration window, login methods, and navigation menu paths. Start here to resolve an event before calling the other event tools; use list_my_events to find events you joined. Works without login.

输入参数event必填

my_participation

Get my event participation

Fetch the logged-in viewer's own participant status, activation, permissions, organisation pages, and opportunities for one event. Use get_participant for someone else's public profile.

输入参数event必填

list_participants

List B2match participants

List public participants as a compact summary. Set detail=true for the fuller record; use get_participant for one profile.

输入参数afterevent必填firstquerydetail

get_participant

Get B2match participant

Fetch one participant's full public profile without sending B2match's profile-view tracking mutation. Use list_participants to search or find ids; use my_participation for your own status.

输入参数event必填participant_id必填

list_organisations

List B2match organisations

List organisation pages (participations) of an event, paginated. Use get_organisation for one page, list_participants for people. Resolves the menu path automatically; pass path to override.

输入参数pathafterevent必填first

get_organisation

Get B2match organisation

Fetch one organisation page (a participation: organisation details plus its representatives). Use list_organisations to find participation ids; use get_participant for a single person. Resolves the menu path automatically; pass path to override.

输入参数pathevent必填participation_id必填

list_opportunities

List B2match opportunities

List published marketplace opportunities (offers/requests) of an event, paginated. Use get_opportunity for one entry's full details. Resolves the menu path automatically; pass path to override.

输入参数pathafterevent必填first

get_opportunity

Get B2match opportunity

Fetch a marketplace opportunity. Use the id or url from list_opportunities (published marketplace ids differ from opportunity ids on my_participation). Resolves the marketplace menu path automatically; pass path to override.

输入参数pathevent必填opportunity_id必填

get_agenda

Get B2match agenda

Fetch the event agenda: sessions and networking blocks with times. Use get_session for one session's details and my_schedule for your personal schedule. Resolves the menu path automatically; pass path to override.

输入参数pathevent必填

get_session

Get B2match session

Fetch one agenda session with its details and a first page of attendees. Provide session_id, or path to a session URL; path alone is enough. Use list_session_attendees to page through attendees only, get_agenda to find sessions.

输入参数pathevent必填session_idattendees_afterattendees_first

list_session_attendees

List B2match session attendees

Page through the attendees of one agenda session. Returns only the attendee list with a cursor, not the session details; use get_session for those. Provide session_id or path (from get_agenda).

输入参数pathafterevent必填firstsession_id

list_speakers

List B2match speakers

List the speakers shown on the event's speakers page, paginated. Use list_participants for all registered participants. Resolves the menu path automatically; pass path to override.

输入参数pathafterevent必填first

my_schedule

Get my B2match schedule

Fetch the logged-in viewer's personal event schedule (booked sessions and meetings). Use get_agenda for the full public agenda and my_meetings for meeting requests by status. The PDF agenda URL is omitted unless include_pdf_link is true.

输入参数event必填include_pdf_link

my_meetings

Get my B2match meetings

Fetch the logged-in viewer's meetings and meeting requests, optionally one status bucket. Unfiltered responses include a compact availability summary (merged free ranges per day) unless detail=true. Use my_schedule for the overall timetable and find_meeting_slots to find free times with others.

输入参数event必填detailstatus

my_availability

Get my B2match availability

Fetch the logged-in viewer's own meeting availability. Default is merged free ranges per day; set detail=true for the full timeslot grid. Use find_meeting_slots for slots shared with specific participants.

输入参数event必填detail

find_meeting_slots

Find B2match meeting slots

Find free meeting slots shared by the logged-in viewer and selected participants on one day. Read-only: does not book or request a meeting. Use my_availability for your own free time only.

输入参数dayevent必填durationparticipant_ids必填is_long_term_networking

meeting_recommendations

Get B2match meeting recommendations

Fetch B2match's recommended and newest participants for the logged-in viewer to meet. Use list_participants to search all participants and find_meeting_slots to check shared free time.

输入参数event必填

list_conversations

List B2match conversations

List the logged-in viewer's conversations with last-message previews, paginated. Does not mark conversations as read; prefer it over get_conversation unless full message history is needed.

输入参数afterevent必填first

get_conversation

Get B2match conversation

Fetch conversation messages. B2match marks that conversation as read when messagesV2 is fetched, even though this client never sends MarkConversationAsSeen. Disabled unless B2MATCH_ALLOW_SIDE_EFFECT_READS=1 and acknowledge_marks_read is true. Use list_conversations for last-message previews. Unknown ids return a not-found error.

输入参数conversation_id必填acknowledge_marks_read

list_notifications

List B2match notifications

Returns unread/unseen notification counters by default. Fetching the notification list resets B2match's unseen counter (unseen goes to 0) even though this client never sends ReadNotification. The unread counter is unchanged. The full list requires B2MATCH_ALLOW_SIDE_EFFECT_READS=1 and acknowledge_marks_seen=true.

输入参数afterevent必填firstacknowledge_marks_seen

版本历史

1
  1. v0.2.1最新Oct 23, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分