$ timeahead.in
/ servers/npm/use-mcp
npm

use-mcp

<div class="oranda-hide">

1k stars49k/wkupdated 189d agogithub ↗
91excellent
▣ Overview
GitHub last commitnpmGitHub License

What it does

A React hook that connects browser-based applications to Model Context Protocol (MCP) servers. It manages connection state, handles OAuth authentication flows with popup and fallback support, and provides a simple interface to discover and invoke server tools, read resources, and access prompt templates. The hook includes automatic reconnection logic and supports both HTTP and Server-Sent Events (SSE) transports.

Who it's for

Frontend developers building interactive AI applications that need access to remote tools and data via MCP. Particularly useful for React teams building chat interfaces, AI assistants, or tool-calling dashboards that must authenticate and communicate with MCP servers from the browser.

Common use cases

  • Build a browser-based chat UI that calls tools on remote MCP servers
  • Implement OAuth authentication flows to access MCP servers requiring user consent
  • Read and display MCP server resources within a React application
  • Use MCP server-provided prompt templates to structure AI requests
  • Debug and inspect MCP server capabilities with the included Inspector tool

Setup pitfalls

  • OAuth callback route must match the redirect URI registered with your MCP server — mismatch silently breaks authentication
  • Filesystem reads and writes require browser permissions and may be restricted by sandbox policies
  • Network calls to the MCP server must be allowed by CORS policy — test with the Inspector first
  • Last commit was 143 days ago — verify compatibility with recent MCP spec versions
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
100
35.0
Freshness
25%
100
25.0
Adoption
20%
82
16.5
Quality
10%
90
9.0
Trust
10%
50
5.0
Total
90.5
⚿ Capabilities & Risk Explainer
fs readfs writenetworkexecsecrets
◆ Risk level: high· 2 tools · auth: API key
fs read + fs write + network + exec + secrets active — can execute code, access credentials, and make external network calls.
Tool nameDescriptionDestructive?
add✓ no
calculate✓ no
⚙ Install config
Claude Desktop · Cursor · Windsurf · VS Code (Copilot) · Claude Code
add to your MCP client config:
{
  "mcpServers": {
    "use": {
      "command": "npx",
      "args": [
        "-y",
        "use-mcp"
      ]
    }
  }
}
⚙ Maintenance health
maintenance data not yet available — check back later.
⛁ Raw data
weekly downloads49k
github stars1k
forks79
open issues20
license✓ present
readme length9017 chars
last publish18d ago
last commit189d ago
last updated5h ago
install verified✓ pass · 39d ago
owner of this server? claim your listing to get a verified badgeclaim →
🔔 Score drop alerts
get notified by email when this server's score drops 5+ points