MCP Catalogs
Home

mcp-client-gen

by kriasoft·16·Score 41

Tool to generate type-safe TypeScript clients for any MCP server with OAuth 2.1 support.

developer-toolsai-llmother
3
Forks
2
Open issues
4 mo ago
Last commit
2d ago
Indexed

Overview

MCP Client Generator is a utility that transforms any MCP server into a fully type-safe TypeScript SDK. It automates the process of generating client code based on server schemas, eliminating manual implementation. The tool supports multiple authentication providers through OAuth 2.1 with PKCE, enabling secure access to various MCP services without handling credentials directly.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Integrating MCP services into TypeScript applications with full type safety
you:Rapidly prototyping MCP client implementations for new services
you:Building applications that need to interact with multiple MCP servers consistently
you:What authentication methods does it support?
you:Can it generate clients for all MCP servers?

When to choose this

Choose this when working with TypeScript and needing type-safe access to MCP servers, especially OAuth-protected ones.

When NOT to choose this

Don't choose if you need authentication methods beyond OAuth 2.1 or if you're working in a non-TypeScript environment.

Comparable tools

mcp-ts-sdktyped-mcp-clientraw-mcp-protocol

Installation

# Install globally
npm install -g mcp-client-gen
# or
bun add -g mcp-client-gen

# Generate client from URL
npx mcp-client-gen https://mcp.notion.com/mcp -o notion.ts

# For Claude Desktop integration
# Add to claude_desktop_config.json:
"mcpServers": {
  "mcpClientGen": {
    "command": "npx",
    "args": ["mcp-client-gen"]
  }
}

FAQ

What authentication methods does it support?
The tool supports OAuth 2.1 with PKCE for authentication. When connecting to servers that require authentication, it automatically triggers a browser-based OAuth flow.
Can it generate clients for all MCP servers?
Yes, it can generate clients for any MCP server that follows the protocol specification, as long as the server is accessible via a URL.

Compare mcp-client-gen with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.