ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Microsoft Teams MCP

โดย chrischallรุ่น 0.8.4i★ –iรันบนเครื่อง
ชื่อใน registryio.github.chrischall/microsoft-teams-mcp

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Microsoft Teams for Claude — read any chat or channel and its unread messages; send and react

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: แชตและอีเมล
  • ต้องใส่ค่าเหล่านี้: TEAMS_ACCESS_TOKEN, MCP_CONFIRM_SECRET

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

  • ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
  • รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
  • ค่าที่คุณต้องใส่เอง: TEAMS_WS_PORT, FETCHPROXY_WS_HOST, FETCHPROXY_IDENTITY_DIR, TEAMS_ACCESS_TOKEN, TEAMS_DISABLE_FETCHPROXY, TEAMS_CHATSVC_REGION, TEAMS_CHATSVC_BASE, TEAMS_CAPTURE_TIMEOUT, TEAMS_TOKEN_CACHE, TEAMS_TOKEN_FILE, TEAMS_SUBSTRATE_TOKEN_FILE, TEAMS_SHAREPOINT_TOKEN_FILE, TEAMS_TIME_ZONE, TEAMS_OUTPUT_DIR, MCP_CONFIRM_MODE, MCP_CONFIRM_ELICITATION, MCP_CONFIRM_TTL_SECONDS, MCP_CONFIRM_SECRET

ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/microsoft-teams-mcp"
      ],
      "env": {
        "TEAMS_WS_PORT": "ใส่ค่าของคุณ",
        "FETCHPROXY_WS_HOST": "ใส่ค่าของคุณ",
        "FETCHPROXY_IDENTITY_DIR": "ใส่ค่าของคุณ",
        "TEAMS_ACCESS_TOKEN": "ใส่ค่าของคุณ",
        "TEAMS_DISABLE_FETCHPROXY": "ใส่ค่าของคุณ",
        "TEAMS_CHATSVC_REGION": "ใส่ค่าของคุณ",
        "TEAMS_CHATSVC_BASE": "ใส่ค่าของคุณ",
        "TEAMS_CAPTURE_TIMEOUT": "ใส่ค่าของคุณ",
        "TEAMS_TOKEN_CACHE": "ใส่ค่าของคุณ",
        "TEAMS_TOKEN_FILE": "ใส่ค่าของคุณ",
        "TEAMS_SUBSTRATE_TOKEN_FILE": "ใส่ค่าของคุณ",
        "TEAMS_SHAREPOINT_TOKEN_FILE": "ใส่ค่าของคุณ",
        "TEAMS_TIME_ZONE": "ใส่ค่าของคุณ",
        "TEAMS_OUTPUT_DIR": "ใส่ค่าของคุณ",
        "MCP_CONFIRM_MODE": "ใส่ค่าของคุณ",
        "MCP_CONFIRM_ELICITATION": "ใส่ค่าของคุณ",
        "MCP_CONFIRM_TTL_SECONDS": "ใส่ค่าของคุณ",
        "MCP_CONFIRM_SECRET": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add microsoft-teams --env TEAMS_WS_PORT='ใส่ค่าของคุณ' --env FETCHPROXY_WS_HOST='ใส่ค่าของคุณ' --env FETCHPROXY_IDENTITY_DIR='ใส่ค่าของคุณ' --env TEAMS_ACCESS_TOKEN='ใส่ค่าของคุณ' --env TEAMS_DISABLE_FETCHPROXY='ใส่ค่าของคุณ' --env TEAMS_CHATSVC_REGION='ใส่ค่าของคุณ' --env TEAMS_CHATSVC_BASE='ใส่ค่าของคุณ' --env TEAMS_CAPTURE_TIMEOUT='ใส่ค่าของคุณ' --env TEAMS_TOKEN_CACHE='ใส่ค่าของคุณ' --env TEAMS_TOKEN_FILE='ใส่ค่าของคุณ' --env TEAMS_SUBSTRATE_TOKEN_FILE='ใส่ค่าของคุณ' --env TEAMS_SHAREPOINT_TOKEN_FILE='ใส่ค่าของคุณ' --env TEAMS_TIME_ZONE='ใส่ค่าของคุณ' --env TEAMS_OUTPUT_DIR='ใส่ค่าของคุณ' --env MCP_CONFIRM_MODE='ใส่ค่าของคุณ' --env MCP_CONFIRM_ELICITATION='ใส่ค่าของคุณ' --env MCP_CONFIRM_TTL_SECONDS='ใส่ค่าของคุณ' --env MCP_CONFIRM_SECRET='ใส่ค่าของคุณ' -- npx -y @chrischall/microsoft-teams-mcp

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/microsoft-teams-mcp"
      ],
      "env": {
        "TEAMS_WS_PORT": "ใส่ค่าของคุณ",
        "FETCHPROXY_WS_HOST": "ใส่ค่าของคุณ",
        "FETCHPROXY_IDENTITY_DIR": "ใส่ค่าของคุณ",
        "TEAMS_ACCESS_TOKEN": "ใส่ค่าของคุณ",
        "TEAMS_DISABLE_FETCHPROXY": "ใส่ค่าของคุณ",
        "TEAMS_CHATSVC_REGION": "ใส่ค่าของคุณ",
        "TEAMS_CHATSVC_BASE": "ใส่ค่าของคุณ",
        "TEAMS_CAPTURE_TIMEOUT": "ใส่ค่าของคุณ",
        "TEAMS_TOKEN_CACHE": "ใส่ค่าของคุณ",
        "TEAMS_TOKEN_FILE": "ใส่ค่าของคุณ",
        "TEAMS_SUBSTRATE_TOKEN_FILE": "ใส่ค่าของคุณ",
        "TEAMS_SHAREPOINT_TOKEN_FILE": "ใส่ค่าของคุณ",
        "TEAMS_TIME_ZONE": "ใส่ค่าของคุณ",
        "TEAMS_OUTPUT_DIR": "ใส่ค่าของคุณ",
        "MCP_CONFIRM_MODE": "ใส่ค่าของคุณ",
        "MCP_CONFIRM_ELICITATION": "ใส่ค่าของคุณ",
        "MCP_CONFIRM_TTL_SECONDS": "ใส่ค่าของคุณ",
        "MCP_CONFIRM_SECRET": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "microsoft-teams": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/microsoft-teams-mcp"
      ],
      "env": {
        "TEAMS_WS_PORT": "ใส่ค่าของคุณ",
        "FETCHPROXY_WS_HOST": "ใส่ค่าของคุณ",
        "FETCHPROXY_IDENTITY_DIR": "ใส่ค่าของคุณ",
        "TEAMS_ACCESS_TOKEN": "ใส่ค่าของคุณ",
        "TEAMS_DISABLE_FETCHPROXY": "ใส่ค่าของคุณ",
        "TEAMS_CHATSVC_REGION": "ใส่ค่าของคุณ",
        "TEAMS_CHATSVC_BASE": "ใส่ค่าของคุณ",
        "TEAMS_CAPTURE_TIMEOUT": "ใส่ค่าของคุณ",
        "TEAMS_TOKEN_CACHE": "ใส่ค่าของคุณ",
        "TEAMS_TOKEN_FILE": "ใส่ค่าของคุณ",
        "TEAMS_SUBSTRATE_TOKEN_FILE": "ใส่ค่าของคุณ",
        "TEAMS_SHAREPOINT_TOKEN_FILE": "ใส่ค่าของคุณ",
        "TEAMS_TIME_ZONE": "ใส่ค่าของคุณ",
        "TEAMS_OUTPUT_DIR": "ใส่ค่าของคุณ",
        "MCP_CONFIRM_MODE": "ใส่ค่าของคุณ",
        "MCP_CONFIRM_ELICITATION": "ใส่ค่าของคุณ",
        "MCP_CONFIRM_TTL_SECONDS": "ใส่ค่าของคุณ",
        "MCP_CONFIRM_SECRET": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • TEAMS_WS_PORT env
    fetchproxy concentrator port used for the browser bridge. Defaults to 37149, the fleet-wide shared port.
  • FETCHPROXY_WS_HOST env
    Bind interface for the bridge (default 127.0.0.1; a literal IP only, anything else is ignored). Keep on loopback — it exists for ONE topology: a hosted child in its own network namespace.
  • FETCHPROXY_IDENTITY_DIR env
    Where to store the long-term fetchproxy identity keypair (default ~/.fetchproxy/identity/; an absolute path only, anything else is ignored). Exists for a host that runs a separate child per caller, s…
  • TEAMS_ACCESS_TOKEN ความลับ env
    A pre-obtained Teams chat-service bearer token (the JWT itself). Leave blank to capture one from your signed-in Teams browser tab via the ContextMint Bridge extension.
  • TEAMS_DISABLE_FETCHPROXY env
    Set to true to never capture a token from the browser; then TEAMS_ACCESS_TOKEN is required. Leave blank.
  • TEAMS_CHATSVC_REGION env
    The Teams chat-service region in the API path. Defaults to amer. Leave blank unless your tenant lives elsewhere.
  • TEAMS_CHATSVC_BASE env
    Full override for the chat-service API base (default https://teams.cloud.microsoft/api/chatsvc/ /v1). Leave blank.
  • TEAMS_CAPTURE_TIMEOUT env
    Seconds to wait for the Teams tab to issue a chat-service request when capturing a token. Defaults to 30.
  • TEAMS_TOKEN_CACHE env
    Set to false to keep the captured token in memory only. Defaults to on: it is cached so a restart within its ~23h lifetime needs no browser.
  • TEAMS_TOKEN_FILE env
    Where the captured token is cached. Defaults to ~/.microsoft-teams-mcp/token.json.
  • TEAMS_SUBSTRATE_TOKEN_FILE env
    Where the captured Substrate search token is cached. Defaults to ~/.microsoft-teams-mcp/substrate-token.json.
  • TEAMS_SHAREPOINT_TOKEN_FILE env
    Where the captured SharePoint tokens are cached. Defaults to ~/.microsoft-teams-mcp/sharepoint-tokens.json.
  • TEAMS_TIME_ZONE env
    Default IANA time zone (e.g. America/New_York) for time_local on read results. Unset means UTC only.
  • TEAMS_OUTPUT_DIR env
    Folder teams_export_messages writes exports into. Unset means ~/Downloads/microsoft-teams-mcp.
  • MCP_CONFIRM_MODE env
    What the writes (teams_send_message, teams_react, teams_mark_read and the read tools' mark_read) do on a client that cannot show a confirmation prompt (claude.ai, Claude Desktop): "ask-user" (default…
  • MCP_CONFIRM_ELICITATION env
    "off" never shows a confirmation prompt, so every client gets the MCP_CONFIRM_MODE flow. Set it for a client that says it can show prompts but never does. Defaults to on.
  • MCP_CONFIRM_TTL_SECONDS env
    How long a confirmToken stays valid, in seconds. Defaults to 600.
  • MCP_CONFIRM_SECRET ความลับ env
    Signing key for confirmTokens. Random per process by default; set it only if tokens must survive a server restart.

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub chrischall ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด แชตและอีเมลi

  • ดาวมากกว่า 0% ของอีก 1828 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 96% ของอีก 1828 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 1828 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Microsoft Teams MCP ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: TEAMS_ACCESS_TOKEN, MCP_CONFIRM_SECRET

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.8.4) เข้า registry เมื่อวาน

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Vexa, emailmd, MCP WhatsApp Cloud

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Vexa

โดย Vexa-ai

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

รันบนคลาวด์★ 2,949Apache-2.0อัปเดต 2 เดือนที่ผ่านมา
ติดตั้ง

emailmd

โดย anypost

Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.

บนเครื่องหรือคลาวด์★ 1,385MITอัปเดต 32 วันที่ผ่านมา
ติดตั้ง

MCP WhatsApp Cloud

โดย codespar

MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API

รันบนเครื่อง★ 277MITอัปเดต 5 เดือนที่ผ่านมา
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

microsoft-teams-mcp

MCP server for Microsoft Teams — list every chat and channel you are in, read any of them by id or name, pull everything you have not read yet, read your Activity feed, fetch inline images, and — each one confirmed by you first — post messages and reactions, using your signed-in browser session.

This project was developed and is maintained by AI (Claude Code). Use at your

own discretion.

How it works

Chats and channels are read through Teams' own chat-service REST API (https://teams.cloud.microsoft/api/chatsvc/ /v1). The server needs a bearer token for it, and the only place one exists is your signed-in teams.cloud.microsoft tab: through the fetchproxy browser bridge it captures the Authorization header off a request the Teams web app makes to its chat service — once. From then on every call is a plain server-side request; the token is cached in ~/.microsoft-teams-mcp/token.json for its ~23h lifetime (so a restart needs no browser), and a 401 re-captures once and replays. teams.microsoft.com (the old host) is not supported.

So chats and channels no longer need to be open in the browser — any of them can be read by id or name, and listing covers every chat, not just the ones the sidebar shows. To capture a token, an idle tab is not enough: click into any chat so Teams calls its chat service.

The Activity feed comes from the same API. It is a chat-service conversation of its own (48:notifications), so teams_list_activity reads it like any chat — no Activity view (or any view) needs to be open, and nothing reads the page. The bridge is used for one thing only: capturing the token.

By default nothing here marks anything read. Reading a chat through this server leaves your Teams unread badges exactly as they were — unless you ask for it: teams_mark_read, or mark_read: true on teams_list_messages / teams_list_unread_messages, moves your read marker forward. The writes — teams_send_message, teams_react and marking read — go through the same chat-service API and change nothing until you confirm (see Writes).

Pairing

The bridge remembers a pairing only for the exact set of domains it approved, and approving a grant replaces the stored list of header captures. So all of this server's captures (chat service, SharePoint, Substrate search) declare the same scope: the three domains teams.cloud.microsoft, sharepoint.com and substrate.office.com, plus the chat-service and search captures and one capture per SharePoint host the server has already captured from. Each capture still reads only the one header it needs. The SharePoint hosts are remembered in ~/.microsoft-teams-mcp/bridge-scope.json (beside the SharePoint token cache; not written with TEAMS_TOKEN_CACHE=false) once a capture from them succeeds.

Up to 0.7, each capture declared only its own domain, so the bridge asked to pair again (or to update its grants) whenever the server moved between chats, search and files. Upgrading from 0.7 asks to pair once more, for the combined scope; after that it stays paired.

If you run the bridge in more than one browser or browser profile, each one is a different extension identity, and the server trusts only the one it paired with. Keep the bridge enabled in the browser you pair with (or re-pair deliberately with FETCHPROXY_TRUST_NEW_EXTENSION=1 after switching browsers).

SharePoint file download

A shared file in a chat or channel is not in Teams' own object store (where inline images live) — it is in SharePoint, which does not accept the chat-service token. So teams_get_attachment captures a separate SharePoint token and fetches the file through SharePoint's v2.1 shares API, then downloads the pre-signed link it returns (with no token attached).

Two things follow from that:

  • One pairing covers it. Every capture this server makes — chat service, SharePoint and search — declares the same ContextMint Bridge scope: the domains teams.cloud.microsoft, sharepoint.com and substrate.office.com, and the same list of header captures. So approving microsoft-teams-mcp once covers all three, and moving between chats, files and search never asks again (see Pairing). The first file from a new SharePoint host asks once to grant that host's capture.
  • Open the file once per SharePoint host. The SharePoint token is captured from the browser's own request to the file's SharePoint host, is short-lived (~53 minutes), and is scoped to one host family. So the first file from a given host in a session may need you to open it once in a signed-in Teams tab (that browser request is what the token is read from); after that the token is cached and refreshed until it expires. A file your account cannot open, or on a SharePoint host your token does not cover, comes back as metadata and its open link rather than failing.

Substrate search

teams_search_messages searches the way the Teams search box does: through Microsoft Substrate (POST https://substrate.office.com/searchservice/api/v2/query). Substrate does not accept the chat-service token either, so search captures a third token — off the request the Teams tab makes to substrate.office.com/searchservice/* when you run a search there — and caches it in ~/.microsoft-teams-mcp/substrate-token.json. As with the other two, it is read only from the request header, never from page storage.

  • No separate pairing. Search is part of the one bridge scope every capture declares (see Pairing), so the pairing that reads chats covers it.
  • Run a search in Teams once. The token is read off the Teams tab's own search request, so the first search may need you to type anything into the Teams search box and press Enter while the capture waits (TEAMS_CAPTURE_TIMEOUT, default 30s).
  • It falls back to scanning. In the default mode: "auto", when no Substrate token can be captured or the search fails, the tool scans recent conversations instead (source: "scan", with a fallback_reason), and does not wait on another capture for 10 minutes. mode: "substrate" fails instead; mode: "scan" never touches Substrate.
  • It does not re-capture in a loop. If a freshly captured token is still refused (401), the same 10-minute cooldown applies, so auto goes straight to the scan instead of waiting on the bridge every call.

Verified live 2026-10-12. A token captured off the Teams tab's own

search request (it lives about 1.4 hours) was replayed from Node against

read-only queries such as deploy. Confirmed: the request body (cvid, logicalId

and a scenario are required; the sort is `{ Field: "Time", SortDirection:

"Desc" }`), that no header beyond the bearer is needed, the response fields

(conversation in ClientThreadId, a channel root in ClientConversationId's

;messageid=, the message id in InternetMessageId, sender name and SMTP

address but no MRI, a plain-text Preview of at most ~255 characters, an

approximate Total), paging by from/size (up to 200), and that

conversation and since can be sent server-side as ClientThreadId:"…"

and an unquoted sent>=…. from stays client-side: Substrate's own from:

matches word prefixes, not "display name contains". A redacted response is

in tests/fixtures/substrate-query-response.json.

Install

npm i -g @chrischall/microsoft-teams-mcp

Requires the ContextMint Bridge browser extension and @fetchproxy/cli, on a matching major version. Install the bridge from its releases page: in Chrome, unzip the chrome zip and load it unpacked (chrome://extensions → Developer mode → Load unpacked). Safari isn't available yet (it will ship inside the ContextMint app, which has no public download), so use Chrome for now.

ContextMint Bridge is the fetchproxy browser extension under its new name, from the same maintainer — fetchproxy's own README (https://github.com/chrischall/fetchproxy#extension) points to it. Its source is public at https://github.com/nullnet-app/contextmint-bridge: build it yourself, or check a release zip against the .sha256 file published beside it (shasum -a 256 -c contextmint-bridge-chrome- .zip.sha256).

npm i -g @fetchproxy/cli

The first call prints a 6-digit pair code to approve in the ContextMint Bridge popup; the grant persists.

Install in opencode

opencode reads MCP servers from opencode.json (project) or ~/.config/opencode/opencode.json (global):

{

"mcp": { "servers": { "teams": { "type": "local", "command": ["npx", "-y", "@chrischall/microsoft-teams-mcp"] } } } }

Configuration

Everything is optional — by default the token is captured from your browser.

variablepurpose
TEAMS_ACCESS_TOKENA chat-service bearer token (the JWT itself) to use instead of capturing one. Never re-captured from the browser: when Teams rejects it, replace it.
TEAMS_DISABLE_FETCHPROXYtrue to never capture from the browser (then TEAMS_ACCESS_TOKEN is required).
TEAMS_CHATSVC_REGIONChat-service region in the API path. Defaults to amer.
TEAMS_CHATSVC_BASEFull override for the API base (default https://teams.cloud.microsoft/api/chatsvc/ /v1).
TEAMS_CAPTURE_TIMEOUTSeconds to wait for the Teams tab to issue a chat-service request. Defaults to 30. The bridge deadline is derived from it (window + 15s).
TEAMS_TOKEN_CACHEfalse to keep the captured token in memory only. Defaults to on.
TEAMS_TOKEN_FILEWhere the captured token is cached. Defaults to ~/.microsoft-teams-mcp/token.json.
TEAMS_SUBSTRATE_TOKEN_FILEWhere the captured Substrate search token is cached. Defaults to ~/.microsoft-teams-mcp/substrate-token.json. TEAMS_TOKEN_CACHE=false keeps it in memory too.
TEAMS_SHAREPOINT_TOKEN_FILEWhere the captured SharePoint tokens (one per host, used to download shared files) are cached. Defaults to ~/.microsoft-teams-mcp/sharepoint-tokens.json. TEAMS_TOKEN_CACHE=false keeps them in memory too.
TEAMS_TIME_ZONEDefault IANA time zone (e.g. America/New_York) for the tz argument of teams_list_messages and teams_list_unread_messages: each message then carries time_local (ISO 8601 with offset) next to its UTC time. Unset means no time_local unless tz is passed; a name Intl does not know is reported as an error.
TEAMS_OUTPUT_DIRFolder teams_export_messages (and teams_get_transcript with save) writes into (each export gets its own timestamped subfolder). Defaults to ~/Downloads/microsoft-teams-mcp. When set, a per-call dest must lie inside it; when unset, dest must be under ~/Downloads, ~/Documents or ~/Desktop.
TEAMS_WS_PORTfetchproxy concentrator port. Defaults to 37149, the fleet-wide shared port.
FETCHPROXY_WS_HOSTBind interface for the bridge (default 127.0.0.1; a literal IP only, anything else is ignored). Keep on loopback — it exists for ONE topology: a hosted child in its own network namespace.
FETCHPROXY_IDENTITY_DIRWhere to store the long-term fetchproxy identity keypair (default ~/.fetchproxy/identity/; an absolute path only, anything else is ignored). Exists for a host that runs a separate child per caller, so they can share one identity.

Tools

  • teams_list_conversations — every chat you are in (1:1, group and meeting chats, not just the visible sidebar, plus your 48:notes self-chat as kind self when Teams lists it), favorites and pinned chats first, then most recent activity first: id, kind, title, unread hint, ISO-8601 last-activity time, last-message preview and sender. unread_only (exact — see belo

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx