Host RPC
Bridges Model Context Protocol tool calls to JSON-RPC functions over Unix sockets, providing secure, context-based scoping for multi-tenant server deployments.
Acerca de
MCP Host RPC Bridge is a robust Node.js library designed to seamlessly connect Model Context Protocol (MCP) tool calls to your backend JSON-RPC functions. It leverages secure Unix socket connections and offers advanced context-based scoping with JWT authentication, making it ideal for multi-tenant MCP server deployments. Developers can easily define and register tools with detailed input schemas, which are then routed to their respective handlers, receiving a verified context object for secure, user-specific operations. This bridge simplifies the creation of secure and scalable MCP tool integrations, ensuring that functions operate within the appropriate user or tenant context.
Características Principales
- Simplified Host API for setting up RPC servers
- JWT-secured context-based scoping for user and tenant isolation
- Reliable Unix domain socket communication for tool calls
- Built-in JWT authentication with automatic verification
- Dynamic registration of RPC functions and flexible tool sets
- 1 GitHub stars
Casos de Uso
- Building secure, multi-tenant MCP servers with context-aware tool execution
- Integrating Model Context Protocol tools with existing Node.js backend logic via JSON-RPC
- Defining and validating tool inputs using JSON Schema or Zod for robust API interactions