npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dev-hitesh-gupta/teams-mcp

v1.0.2

Published

Microsoft Teams MCP Server — control Teams via Claude using headless Playwright browser automation. 24 tools for messaging, channels, meetings, files, and presence.

Readme

teams-mcp

Microsoft Teams MCP Server — control Teams through Claude using headless Playwright browser automation.

npm version License: MIT Node.js

24 tools across messaging, channels, meetings, files, and presence — all accessible through Claude Code or any MCP-compatible client.

How It Works

Uses Playwright to automate the Teams web app (teams.microsoft.com). The browser launches on the first tool call and auto-closes after 5 minutes of inactivity.

Auth flow: On first use (or when the session expires), a visible browser opens for you to sign in with your Microsoft account (supports MFA). After sign-in, the session is saved and all subsequent operations run headless in the background.

Installation

npx @dev-hitesh-gupta/teams-mcp

Or install globally:

npm install -g @dev-hitesh-gupta/teams-mcp

Install Chromium browser

npx playwright install chromium

Authenticate

npx @dev-hitesh-gupta/teams-mcp auth
# or if installed globally:
teams-mcp auth

A browser window will open — sign in with your Microsoft account. Your session is saved to ~/.teams-mcp/ and reused on future calls.

Add to Claude Code

claude mcp add teams -- npx @dev-hitesh-gupta/teams-mcp

Or add manually to your Claude config (~/.claude/claude_desktop_config.json):

{
  "mcpServers": {
    "teams": {
      "command": "npx",
      "args": ["@dev-hitesh-gupta/teams-mcp"]
    }
  }
}

Tools

Messages (8)

| Tool | Description | |------|-------------| | teams_list_chats | List recent chats (1:1, group, meeting chats) | | teams_get_messages | Read messages from a chat or channel | | teams_send_message | Send a message to a chat or channel | | teams_reply_to_message | Reply in a message thread | | teams_react_to_message | Add emoji reaction (like/heart/laugh/surprised/sad/angry) | | teams_search_messages | Search across all chats and channels | | teams_get_mentions | Get @mention notifications from activity feed | | teams_delete_message | Delete a sent message |

Channels & Teams (6)

| Tool | Description | |------|-------------| | teams_list_teams | List all joined teams | | teams_list_channels | List channels in a team | | teams_create_channel | Create a new standard or private channel | | teams_get_channel_info | Get channel details and metadata | | teams_list_members | List team or channel members | | teams_pin_message | Pin or unpin a message in a channel |

Meetings (4)

| Tool | Description | |------|-------------| | teams_list_meetings | List upcoming calendar meetings | | teams_create_meeting | Schedule a new Teams meeting | | teams_get_meeting_info | Get meeting details and join link | | teams_join_meeting | Get the join URL for a meeting |

Files (3)

| Tool | Description | |------|-------------| | teams_list_files | List files in a channel's Files tab | | teams_upload_file | Upload a local file to a channel | | teams_download_file | Download a file from a channel to a local path |

Presence & Status (3)

| Tool | Description | |------|-------------| | teams_set_status | Set presence status (Available/Busy/DND/Away/Offline) | | teams_set_status_message | Set a custom status message | | teams_get_notifications | Get activity feed notifications |

Configuration

Optional environment variables:

| Variable | Default | Description | |----------|---------|-------------| | TEAMS_MCP_IDLE_TIMEOUT | 300000 (5 min) | Browser idle timeout in milliseconds | | TEAMS_MCP_TOOL_TIMEOUT | 30000 (30 sec) | Per-tool operation timeout in milliseconds |

Example with custom timeout:

{
  "mcpServers": {
    "teams": {
      "command": "npx",
      "args": ["@dev-hitesh-gupta/teams-mcp"],
      "env": {
        "TEAMS_MCP_IDLE_TIMEOUT": "600000"
      }
    }
  }
}

Data & Auth Storage

All data is stored locally on your machine:

~/.teams-mcp/
├── auth-state.json     # Saved browser session (cookies, storage)
├── config.json         # Optional config overrides
└── debug/              # Error screenshots for debugging

Re-authentication

If your session expires, the server automatically opens a visible browser for re-auth. You can also manually trigger it:

npx @dev-hitesh-gupta/teams-mcp auth
# or reset completely:
rm ~/.teams-mcp/auth-state.json && npx @dev-hitesh-gupta/teams-mcp auth

Troubleshooting

Auth not working / stuck on login:

rm ~/.teams-mcp/auth-state.json
npx @dev-hitesh-gupta/teams-mcp auth

Tool failing silently: Check screenshots in ~/.teams-mcp/debug/ — errors are automatically captured.

Teams UI changed / selectors breaking: If a tool stops working after a Teams update, the DOM selectors may need updating. Open an issue on GitHub.

Rate limits or throttling: Increase TEAMS_MCP_TOOL_TIMEOUT and add pauses between tool calls.

Requirements

  • Node.js 18+
  • Chromium (installed via npx playwright install chromium)
  • A Microsoft account (personal or work/school with Teams access)

License

MIT — Hitesh Gupta