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

teams-mcp-device-flow

v1.0.0

Published

Microsoft Teams MCP Server - Graph API based Teams management with Device Flow authentication for Claude Desktop and Claude Code

Readme

Teams MCP Server

Microsoft Teams MCP Server using Device Flow authentication for Claude Desktop and Claude Code.

Features

  • Teams Management: List and access your Teams
  • Channel Operations: Read/send messages in channels, reply to threads
  • Chat Operations: 1:1 and group chats, create new conversations
  • Meetings: Create and manage Teams meetings
  • Presence: Get/set online status
  • Search: Search messages across Teams

Setup

1. Create Azure AD App Registration

  1. Go to Azure Portal
  2. Navigate to Azure Active DirectoryApp registrations
  3. Click New registration
  4. Name: Teams MCP
  5. Supported account types: Select based on your needs
    • Personal Microsoft accounts only
    • Work/School accounts only
    • Both (Multitenant + personal)
  6. Redirect URI: Leave empty (not needed for device flow)
  7. Click Register

2. Configure API Permissions

In your app registration, go to API permissionsAdd a permissionMicrosoft GraphDelegated permissions:

Add these permissions:

  • User.Read
  • Team.ReadBasic.All
  • Channel.ReadBasic.All
  • ChannelMessage.Read.All
  • ChannelMessage.Send
  • Chat.ReadWrite
  • ChatMessage.Read
  • ChatMessage.Send
  • OnlineMeetings.ReadWrite
  • Presence.Read
  • Presence.Read.All

Click Grant admin consent (if you're an admin) or ask your admin.

3. Enable Public Client Flow

  1. Go to Authentication
  2. Under Advanced settings, set Allow public client flows to Yes
  3. Save

4. Get Your Client ID

Copy the Application (client) ID from the Overview page.

5. Configure Environment

Create a .env file:

TEAMS_CLIENT_ID=your-client-id-here
TEAMS_TENANT_ID=common

6. Build and Run

npm install
npm run build
npm start

On first run, a browser window will open for Microsoft authentication.

MCP Configuration

Add to your Claude Code or Claude Desktop MCP config:

{
  "mcpServers": {
    "teams": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/teams-mcp/build/index.js"],
      "env": {
        "TEAMS_CLIENT_ID": "your-client-id",
        "TEAMS_TENANT_ID": "common"
      }
    }
  }
}

Available Tools

Teams

  • get_my_teams - List all Teams you're a member of
  • get_team - Get details of a specific Team

Channels

  • get_team_channels - List channels in a Team
  • get_channel - Get channel details
  • get_channel_messages - Read channel messages
  • get_channel_message_replies - Get replies to a message
  • send_channel_message - Post to a channel
  • reply_to_channel_message - Reply to a channel message

Chats

  • get_my_chats - List all 1:1 and group chats
  • get_chat - Get chat details with members
  • get_chat_messages - Read chat messages
  • send_chat_message - Send a chat message
  • create_chat - Start a new chat

Meetings

  • create_meeting - Create a Teams meeting
  • get_my_meetings - List your meetings

Presence

  • get_my_presence - Get your status
  • get_users_presence - Get multiple users' status
  • set_my_presence - Set your status

Search

  • search_messages - Search across Teams

Utility

  • get_current_user - Get your user info

Token Storage

Tokens are stored at: ~/.claude/connectors/teams/msal-cache.json

To logout/re-authenticate, delete this file.

License

MIT