Are you the author? Sign in to claim
Turn any MCP server into a type-safe TypeScript SDK in seconds - with OAuth 2.1 and multi-provider support
Generate type-safe TypeScript clients from MCP servers.
# 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" });
npm install -g mcp-client-gen
# or
bun add -g mcp-client-gen
# 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
// .mcp.json
{
"mcpServers": {
"notion": { "url": "https://mcp.notion.com/mcp" },
"github": { "url": "https://api.githubcopilot.com/mcp/" },
},
}
No credentials required. OAuth-protected servers trigger automatic browser authentication via Dynamic Client Registration (RFC 7591) and PKCE.
MIT — Konstantin Tarkus
Run analytics queries on ClickHouse — explore schemas, execute SQL, fetch results
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases