{"id":30713048,"url":"https://github.com/kriasoft/mcp-client-gen","last_synced_at":"2026-01-26T00:19:59.975Z","repository":{"id":310266997,"uuid":"1037394723","full_name":"kriasoft/mcp-client-gen","owner":"kriasoft","description":"Turn any MCP server into a type-safe TypeScript SDK in seconds - with    OAuth 2.1 and multi-provider support","archived":false,"fork":false,"pushed_at":"2025-08-16T23:21:56.000Z","size":43,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-16T23:27:26.108Z","etag":null,"topics":["ai","ai-agent","anthropic","bun","claude","code-generation","cursor","llm","llms","mcp","mcp-client","mcp-sdk","mcp-server","mcp-tools","model-context-protocol","oauth2","openai","typescript","zed"],"latest_commit_sha":null,"homepage":"https://medium.com/@koistya/why-i-built-mcp-client-generator-and-why-you-should-care-c860193ca902","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kriasoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["koistya"]}},"created_at":"2025-08-13T14:04:21.000Z","updated_at":"2025-08-16T23:21:59.000Z","dependencies_parsed_at":"2025-08-16T23:27:27.958Z","dependency_job_id":"1913f154-4213-48ea-82eb-b4b6ff762fdf","html_url":"https://github.com/kriasoft/mcp-client-gen","commit_stats":null,"previous_names":["kriasoft/mcp-client-gen"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/kriasoft/mcp-client-gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriasoft%2Fmcp-client-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriasoft%2Fmcp-client-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriasoft%2Fmcp-client-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriasoft%2Fmcp-client-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kriasoft","download_url":"https://codeload.github.com/kriasoft/mcp-client-gen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriasoft%2Fmcp-client-gen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273382069,"owners_count":25095377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-agent","anthropic","bun","claude","code-generation","cursor","llm","llms","mcp","mcp-client","mcp-sdk","mcp-server","mcp-tools","model-context-protocol","oauth2","openai","typescript","zed"],"created_at":"2025-09-03T03:10:49.044Z","updated_at":"2026-01-26T00:19:59.967Z","avatar_url":"https://github.com/kriasoft.png","language":"TypeScript","funding_links":["https://github.com/sponsors/koistya"],"categories":[],"sub_categories":[],"readme":"# MCP Client Generator\n\n[![npm](https://img.shields.io/npm/v/mcp-client-gen)](https://www.npmjs.com/package/mcp-client-gen)\n[![downloads](https://img.shields.io/npm/dw/mcp-client-gen)](https://www.npmjs.com/package/mcp-client-gen)\n[![Discord](https://img.shields.io/discord/643523529131950086?label=Chat)](https://discord.gg/bSsv7XM)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\nGenerate type-safe TypeScript clients from [MCP](https://modelcontextprotocol.io) servers.\n\n## Quick Start\n\n```bash\n# Generate client from URL\nnpx mcp-client-gen https://mcp.notion.com/mcp -o notion.ts\n\n# Use the generated client\n```\n\n```typescript\nimport { createNotionClient } from \"./notion\";\nimport { createMcpConnection } from \"mcp-client-gen\";\n\nconst connection = await createMcpConnection({\n  url: \"https://mcp.notion.com/mcp\",\n});\n\nconst notion = createNotionClient(connection);\n\n// Fully typed based on server schema\nconst pages = await notion.notionSearch({ query: \"Meeting Notes\" });\n```\n\n## Features\n\n- **Type-safe** — Generated TypeScript types from server schemas\n- **Zero config auth** — OAuth 2.1 with PKCE, just approve in browser\n- **Tree-shakable** — Only bundle the methods you import\n\n## Installation\n\n```bash\nnpm install -g mcp-client-gen\n# or\nbun add -g mcp-client-gen\n```\n\n## CLI Usage\n\n```bash\n# URL mode (primary)\nnpx mcp-client-gen \u003curl\u003e              # Output to stdout\nnpx mcp-client-gen \u003curl\u003e -o \u003cfile\u003e    # Output to file\nnpx mcp-client-gen \u003curl\u003e \u003cfile\u003e       # Shorthand\n\n# Config mode (reads .mcp.json, .cursor/, .vscode/)\nnpx mcp-client-gen                    # Interactive\nnpx mcp-client-gen -y                 # Accept defaults\n```\n\n### Config File Format\n\n```jsonc\n// .mcp.json\n{\n  \"mcpServers\": {\n    \"notion\": { \"url\": \"https://mcp.notion.com/mcp\" },\n    \"github\": { \"url\": \"https://api.githubcopilot.com/mcp/\" },\n  },\n}\n```\n\n## Authentication\n\nNo credentials required. OAuth-protected servers trigger automatic browser authentication via Dynamic Client Registration (RFC 7591) and PKCE.\n\n## License\n\nMIT — [Konstantin Tarkus](https://github.com/koistya)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkriasoft%2Fmcp-client-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkriasoft%2Fmcp-client-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkriasoft%2Fmcp-client-gen/lists"}