MCP ExplorerExplorer

Use Mcp

@geelenon a year ago
6 MIT
FreeCommunity
AI Systems
A React hook for easy connection to MCP servers with OAuth support.

Overview

What is Use Mcp

use-mcp is a lightweight React hook designed for connecting to Model Context Protocol (MCP) servers, simplifying the process of authentication and tool invocation for AI systems that adhere to the MCP standard.

Use cases

Use cases for use-mcp include developing AI chatbots, integrating AI search functionalities, and creating applications that require real-time data processing from MCP servers.

How to use

To use use-mcp, install it via npm, pnpm, or yarn. Import the hook in your React component and configure it with the MCP server URL and client name. The hook provides connection state management, tool access, and error handling functionalities.

Key features

Key features include automatic connection management with reconnection and retries, OAuth authentication handling, a simple React hook interface, TypeScript support, comprehensive logging for debugging, and compatibility with both HTTP and SSE transports.

Where to use

use-mcp can be utilized in web applications that require integration with AI services using the MCP standard, making it suitable for developers building AI-driven tools and applications.

Content

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers