🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

ms-contacts-mcp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ms-contacts-mcp

Microsoft Contacts MCP server.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
29
-3.33%
Maintainers
1
Weekly downloads
 
Created
Source

ms-contacts-mcp

Microsoft Contacts Model Context Protocol server — 7 tools over the Microsoft Graph v1.0 API. Runs over stdio (local) or Streamable HTTP (remote).

Part of microsoft-mcps.

Setup

Sign in once with your own free Microsoft Entra ID app. Register an app as a public client (redirect URI http://localhost, "Allow public client flows" = Yes) and grant these delegated Microsoft Graph permissions: User.Read, Contacts.ReadWrite. Then:

export MICROSOFT_CLIENT_ID=<your-client-id>
npx -y ms-contacts-mcp login              # opens the browser
# npx -y ms-contacts-mcp login --device-code   # headless alternative

The refresh token is cached under ~/.config/microsoft-mcp/ and renewed automatically — no token pasting, no 1-hour expiry.

Use over stdio (e.g. Claude Desktop)

{
  "mcpServers": {
    "microsoft-contacts": {
      "command": "npx",
      "args": ["-y", "ms-contacts-mcp"],
      "env": { "MICROSOFT_CLIENT_ID": "<your-client-id>" }
    }
  }
}

Advanced: set MICROSOFT_ACCESS_TOKEN to supply a pre-acquired Graph token instead of signing in.

Remote (Streamable HTTP)

npx -y ms-contacts-mcp --http --port 3000

Point a Streamable-HTTP MCP client at http://localhost:3000/mcp and send the token per request as Authorization: Bearer <token>.

See the main repo for the full Entra app walkthrough, environment variables, and the tool list.

License

MIT

Keywords

mcp

FAQs

Package last updated on 08 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts