Client Gen
FreeNot checkedTurn any MCP server into a type-safe TypeScript SDK in seconds - with OAuth 2.1 and multi-provider support
About
Turn any MCP server into a type-safe TypeScript SDK in seconds - with OAuth 2.1 and multi-provider support
README
npm downloads Discord License: MIT
Generate type-safe TypeScript clients from MCP servers.
Quick Start
# Generate client from URL
npx mcp-client-gen https://mcp.notion.com/mcp -o notion.ts
# Use the generated client
import { createNotionClient } from "./notion";
import { createMcpConnection } from "mcp-client-gen";
const connection = await createMcpConnection({
url: "https://mcp.notion.com/mcp",
});
const notion = createNotionClient(connection);
// Fully typed based on server schema
const pages = await notion.notionSearch({ query: "Meeting Notes" });
Features
- Type-safe — Generated TypeScript types from server schemas
- Zero config auth — OAuth 2.1 with PKCE, just approve in browser
- Tree-shakable — Only bundle the methods you import
Installation
npm install -g mcp-client-gen
# or
bun add -g mcp-client-gen
CLI Usage
# URL mode (primary)
npx mcp-client-gen <url> # Output to stdout
npx mcp-client-gen <url> -o <file> # Output to file
npx mcp-client-gen <url> <file> # Shorthand
# Config mode (reads .mcp.json, .cursor/, .vscode/)
npx mcp-client-gen # Interactive
npx mcp-client-gen -y # Accept defaults
Config File Format
// .mcp.json
{
"mcpServers": {
"notion": { "url": "https://mcp.notion.com/mcp" },
"github": { "url": "https://api.githubcopilot.com/mcp/" },
},
}
Authentication
No credentials required. OAuth-protected servers trigger automatic browser authentication via Dynamic Client Registration (RFC 7591) and PKCE.
License
MIT — Konstantin Tarkus
Installing Client Gen
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/kriasoft/mcp-client-genFAQ
Is Client Gen MCP free?
Yes, Client Gen MCP is free — one-click install via Unyly at no cost.
Does Client Gen need an API key?
No, Client Gen runs without API keys or environment variables.
Is Client Gen hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Client Gen in Claude Desktop, Claude Code or Cursor?
Open Client Gen on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Client Gen with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
