mcp-client-gen
by kriasoft·★ 16·Score 41
Tool to generate type-safe TypeScript clients for any MCP server with OAuth 2.1 support.
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:
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
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
Last updated · Auto-generated from public README + GitHub signals.