Power your agent
पब्लिशर की अपनी कमांड। PlugMCP एंडपॉइंट नहीं।
Host a copy with our keys and logs.
npx -y @floriscornel/[email protected]Claude Code में लोकल कमांड के लिए इंस्टॉल लिंक नहीं है। नीचे दी गई कमांड कॉपी करें और टर्मिनल में चलाएँ।
claude mcp add floriscornel-teams-mcp -- npx -y @floriscornel/teams-mcp@1.0.1टर्मिनल में चलाएँ।
{ "mcpServers": { "floriscornel-teams-mcp": { "command": "npx", "args": [ "-y", "@floriscornel/[email protected]" ] } }}claude_desktop_config.json
रिमोट URL या आपकी मशीन पर कमांड? दोनों इंस्टॉल में क्या अंतर है
PlugMCP पर चलाएँ
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
लॉन्चA Model Context Protocol (MCP) server that provides seamless integration with Microsoft Graph APIs, enabling AI assistants to interact with Microsoft Teams, users, chats, files, and organizational data.
To use this MCP server in Cursor/Claude/VS Code, add the following configuration:
{
"mcpServers": {
"teams-mcp": {
"command": "npx",
"args": ["-y", "@floriscornel/teams-mcp@latest"]
}
}
}
AUTH_TOKEN support for pre-issued Microsoft Graph access tokensTeams Management
Channel Operations
normal, high, urgent)Team Members
@mentions@odata.nextLink paginationHosted Content
File Upload
The following tools support rich message formatting in Teams channels and chats:
send_channel_messagesend_chat_messagereply_to_channel_messageupdate_channel_messageupdate_chat_messagesend_file_to_channelsend_file_to_chatYou can specify the format parameter to control the message formatting:
text (default): Plain textmarkdown: Markdown formatting (bold, italic, lists, links, code, etc.) converted to sanitized HTMLWhen format is set to markdown, the message content is converted to HTML using a secure markdown parser and sanitized to remove potentially dangerous content before being sent to Teams.
If format is not specified, the message will be sent as plain text.
{
"teamId": "...",
"channelId": "...",
"message": "**Bold text** and _italic text_\n\n- List item 1\n- List item 2\n\n[Link](https://example.com)",
"format": "markdown",
"importance": "high"
}
{
"chatId": "...",
"message": "Simple plain text message",
"format": "text"
}
**text**), italic (_text_), strikethrough (~~text~~)[text](url)- item) and numbered (1. item)`code` and fenced code blocks# H1 through ###### H6> quoted textMessages retrieved from the Microsoft Graph API are returned as raw HTML containing Teams-specific tags. To make this content more consumable by AI assistants, the following tools support automatic HTML-to-Markdown conversion:
get_chat_messagesget_channel_messagesget_channel_message_repliessearch_messagesget_my_mentionsUse the contentFormat parameter to control how message content is returned:
markdown (default): Converts Teams HTML to clean Markdown, optimized for LLM consumptionraw: Returns the original HTML from the Microsoft Graph APIMessages that contain file attachments or inline images include an attachments array in the response with metadata for each attachment (id, name, contentType, contentUrl, thumbnailUrl). The inline {attachment:id} markers in the markdown content correlate with entries in this array, allowing consumers to identify and download attachments via download_message_hosted_content or download_chat_hosted_content.
{
"chatId": "19:meeting_...",
"limit": 10,
"contentFormat": "markdown"
}
To get the original HTML:
{
"chatId": "19:meeting_...",
"limit": 10,
"contentFormat": "raw"
}
# Install dependencies
npm install
# Build the project
npm run build
# Set up authentication
npm run auth
Full mode (default):
User.Read - Read user profileUser.ReadBasic.All - Read basic user infoTeam.ReadBasic.All - Read team informationChannel.ReadBasic.All - Read channel informationChannelMessage.Read.All - Read channel messagesChannelMessage.Send - Send channel messages and repliesChannelMessage.ReadWrite - Edit and delete channel messagesChat.Read - Read chat messages (included via read-only scopes)Chat.ReadWrite - Create and manage chats, send/edit/delete chat messages (supersedes Chat.Read)TeamMember.Read.All - Read team membersFiles.ReadWrite.All - Required for file uploads to channels and chatsRead-only mode (TEAMS_MCP_READ_ONLY=true) — only these scopes are requested:
User.ReadUser.ReadBasic.AllTeam.ReadBasic.AllChannel.ReadBasic.AllChannelMessage.Read.AllTeamMember.Read.AllChat.ReadFull access:
npx @floriscornel/teams-mcp@latest authenticate
Read-only access:
npx @floriscornel/teams-mcp@latest authenticate --read-only
Direct token injection with an existing Microsoft Graph JWT:
{
"mcpServers": {
"teams-mcp": {
"command": "npx",
"args": ["-y", "@floriscornel/teams-mcp@latest"],
"env": {
"AUTH_TOKEN": "<jwt-for-https://graph.microsoft.com>"
}
}
}
}
~/.msgraph-mcp-auth.json~/.teams-mcp-token-cache.json# Development mode with hot reload
npm run dev
# Production mode
npm run build && node dist/index.js
# Start in read-only mode (disables all write tools)
TEAMS_MCP_READ_ONLY=true node dist/index.js
npx @floriscornel/teams-mcp@latest authenticate # Authenticate with full scopes
npx @floriscornel/teams-mcp@latest authenticate --read-only # Authenticate with read-only scopes
npx @floriscornel/teams-mcp@latest check # Check authentication status
npx @floriscornel/teams-mcp@latest logout # Clear authentication
npx @floriscornel/teams-mcp@latest auth # Alias for authenticate
npx @floriscornel/teams-mcp@latest # Start MCP server (default)
TEAMS_MCP_READ_ONLY=true - Start the MCP server in read-only modeAUTH_TOKEN=<jwt> - Use a pre-existing Microsoft Graph access token instead of MSAL loginTEAMS_MCP_CLIENT_ID=<guid> - Authenticate with your own Azure AD app registration instead of the default Microsoft Graph CLI appTEAMS_MCP_TENANT_ID=<guid-or-domain> - Pin the authority to a specific tenant (e.g. contoso.onmicrosoft.com); required for single-tenant app registrationsTEAMS_MCP_SCOPES="User.Read Chat.ReadWrite" - Override the permission scopes requested during authentication (comma or space separated)By default the server authenticates through Microsoft's public Graph CLI app. To use your own app registration (for example, when your tenant requires it):
TEAMS_MCP_CLIENT_ID=<your-app-id> \
TEAMS_MCP_TENANT_ID=<your-tenant-id> \
npx @floriscornel/teams-mcp@latest authenticate
Set the same environment variables on the MCP server process so it can renew tokens with the same app identity.
Most Teams permissions (Team.ReadBasic.All, ChannelMessage.*, Chat.ReadWrite, Files.ReadWrite.All) require admin consent. If sign-in shows "Need admin approval", an admin must grant consent for the app once — via Enterprise applications → Permissions → Grant admin consent, or by opening:
https://login.microsoftonline.com/<tenant-id>/v2.0/adminconsent?client_id=<app-id>&scope=<space-separated scopes>&redirect_uri=<registered-redirect-uri>
After admin consent is granted, authenticate completes without prompts. Requesting scopes that are not configured on the app registration will always trigger the admin-approval wall — verify the app's API permissions list covers every requested scope.
The server supports a read-only mode that disables all write operations (sending messages, creating chats, uploading files, editing/deleting messages) and requests only read-permission scopes from Microsoft Graph.
Enable read-only mode using either:
TEAMS_MCP_READ_ONLY=true--read-onlyAuthenticate with reduced scopes:
npx @floriscornel/teams-mcp@latest authenticate --read-only
MCP server configuration (read-only):
{
"mcpServers": {
"teams-mcp": {
"command": "npx",
"args": ["-y", "@floriscornel/teams-mcp@latest"],
"env": {
"TEAMS_MCP_READ_ONLY": "true"
}
}
}
}
Switching modes: When switching from read-only to full mode, the server detects the scope mismatch and warns you to re-authenticate:
npx @floriscornel/teams-mcp@latest authenticate
Read-only tools (16):
auth_status, get_current_user, search_users, get_user, list_teams, list_channels, get_channel_messages, get_channel_message_replies, list_team_members, search_users_for_mentions, download_message_hosted_content, list_chats, get_chat_messages, download_chat_hosted_content, search_messages, get_my_mentions
Write tools disabled in read-only mode (15):
send_channel_message, reply_to_channel_message, update_channel_message, delete_channel_message, send_file_to_channel, send_chat_message, create_chat, add_chat_member, update_chat_message, delete_chat_message, send_file_to_chat, set_channel_message_reaction, set_chat_message_reaction, unset_channel_message_reaction, unset_chat_message_reaction
auth_status - Check current authentication statusget_current_user - Get authenticated user informationsearch_users - Search for users by name or emailget_user - Get detailed user information by ID or emaillist_teams - List user's joined teamslist_channels - List channels in a specific teamget_channel_messages - Retrieve messages from a team channel with attachment summaries and content format selectionget_channel_message_replies - Get replies to a specific channel messagesend_channel_message - Send a message to a team channel with optional mentions, importance, and image attachmentsreply_to_channel_message - Reply to an existing channel messageupdate_channel_message - Edit a previously sent channel message or replydelete_channel_message - Soft delete a channel message or replyset_channel_message_reaction - Add a reaction to a channel messageunset_channel_message_reaction - Remove a reaction from a channel messagelist_team_members - List members of a specific teamsearch_users_for_mentions - Search for team members to @mention in messagessend_file_to_channel - Upload a local file and send it as a message to a channellist_chats - List user's chats (1:1 and group)get_chat_messages - Retrieve messages from a specific chat with pagination, filters, ordering, and fetchAllsend_chat_message - Send a message to a chatcreate_chat - Create a new 1:1 or group chatadd_chat_member - Add one or more members to an existing group chatupdate_chat_message - Edit a previously sent chat messagedelete_chat_message - Soft delete a chat messageset_chat_message_reaction - Add a reaction to a chat messageunset_chat_message_reaction - Remove a reaction from a chat messagesend_file_to_chat - Upload a local file and send it as a message to a chatdownload_message_hosted_content - Download hosted content (images, files) from channel messagesdownload_chat_hosted_content - Download hosted content (images, files) from chat messagessearch_messages - Search across all Teams messages using KQL syntaxget_my_mentions - Find recent messages mentioning the current userFirst, authenticate with Microsoft Graph:
# Full access (default)
npx @floriscornel/teams-mcp@latest authenticate
# Read-only (reduced permission scopes)
npx @floriscornel/teams-mcp@latest authenticate --read-only
Check your authentication status:
npx @floriscornel/teams-mcp@latest check
Logout if needed:
npx @floriscornel/teams-mcp@latest logout
{
"chatId": "19:meeting_...",
"limit": 100,
"fetchAll": true,
"orderBy": "createdDateTime",
"descending": true,
"contentFormat": "markdown"
}
{
"teamId": "team-id",
"channelId": "channel-id",
"message": "Please review **today's update**",
"format": "markdown",
"importance": "high",
"mentions": [
{
"mention": "alex.chen",
"userId": "00000000-0000-0000-0000-000000000000"
}
],
"imageUrl": "https://example.com/status.png"
}
{
"chatId": "19:meeting_...",
"filePath": "/absolute/path/to/report.pdf",
"message": "Please review the attached report",
"format": "markdown"
}
This MCP server is designed to work with AI assistants like Claude/Cursor/VS Code through the Model Context Protocol.
{
"mcpServers": {
"teams-mcp": {
"command": "npx",
"args": ["-y", "@floriscornel/teams-mcp@latest"]
}
}
}
~/.teams-mcp-token-cache.json~/.msgraph-mcp-auth.jsonAUTH_TOKEN is validated to ensure it targets https://graph.microsoft.comMIT License - see LICENSE file for details
For issues and questions:
MCP server providing comprehensive Microsoft Teams and Graph API access for AI assistants including messaging, search, and user management.
{ "mcpServers": { "floriscornel-teams-mcp": { "command": "npx", "args": [ "-y", "@floriscornel/[email protected]" ] } }}टूल
अभी टूल सूची नहीं है। रिमोट सर्वर को पहले हेल्थ चेक के बाद सूची मिलती है।
FAQ
इस पेज पर Cursor, Claude Desktop, Claude Code या VS Code के लिए stdio कॉन्फ़िग कॉपी करें। यह पब्लिशर का इंस्टॉल इस्तेमाल करता है, PlugMCP प्रॉक्सी नहीं।
इस रिकॉर्ड में कोई ज़रूरी एनवायरनमेंट वेरिएबल दर्ज नहीं है।
Teams stdio पर लोकल चलता है।
पिछली जाँच 2026-11-14 को हुई। MCP server providing comprehensive Microsoft Teams and Graph API access for AI assistants including messaging, search, and user management.