# modelcontextprotocol/use-mcp

Repository: https://github.com/modelcontextprotocol/use-mcp
Canonical: https://ross.abutalabs.com/products/use-mcp
Language: TypeScript
License: MIT
License Family: permissive
Archived: true
Last push: 2026-01-12T22:50:06+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 62, release rhythm 35, longevity 32
- inputs: {"age_days": 455, "days_push": 233, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1028, forks 79 (observed 2026-08-28T04:03:17.257219+00:00)

## What it is
use-mcp is a lightweight React hook library for connecting browser-based AI applications to Model Context Protocol (MCP) servers. It handles connection management, OAuth authentication flows, and tool/resource/prompt invocation over HTTP and SSE transports.

## Use cases
- connect a react app to an mcp server
- add oauth authentication for mcp tool calling
- build a chat interface that calls mcp tools
- list and invoke tools from an mcp server in the browser
- read mcp server resources from a web app
- handle mcp reconnection and retries in a frontend

## When to choose
- you are building a React or TypeScript web app that talks to MCP servers
- you want managed OAuth popup flows and automatic reconnection for MCP
- you need typed access to MCP tools, resources, and prompts

## When to avoid
- you need a non-React framework or a plain Node.js MCP client
- you are building an MCP server rather than a client
- you need transports beyond HTTP and SSE

## Facets
- artifact type: library
- maturity: active
- function: mcp, auth, http-client, sdk, chatbot
- domain: large-language-models, web-development, frontend, developer-tools
- platform: browser
- tags: react-hook, model-context-protocol, oauth, sse, tool-calling, ai-agents, nodejs, web-server, typescript

## Member repositories
- modelcontextprotocol/use-mcp (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:17.257219+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:07:48.036324+00:00, confidence not recorded.
  - readme: https://github.com/modelcontextprotocol/use-mcp (fetched 2026-08-28T04:03:17.257219+00:00, sha 754d27702f50)
  - registry_npm: https://registry.npmjs.org/use-mcp (fetched 2026-08-29T13:07:41.476323+00:00, sha c3c2e4c4b2e5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
