{"id":31577530,"url":"https://github.com/formulahendry/v0-mcp-registry-api","last_synced_at":"2026-06-28T16:31:30.198Z","repository":{"id":314611534,"uuid":"1051687749","full_name":"formulahendry/v0-mcp-registry-api","owner":"formulahendry","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-24T04:42:24.000Z","size":335,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-24T06:17:36.781Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://v0-node-js-api-from-open-api.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/formulahendry.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-06T14:16:05.000Z","updated_at":"2026-06-24T04:42:28.000Z","dependencies_parsed_at":"2025-09-13T16:25:24.326Z","dependency_job_id":"00d238e3-8677-4431-8bb1-37ff645b29e9","html_url":"https://github.com/formulahendry/v0-mcp-registry-api","commit_stats":null,"previous_names":["formulahendry/v0-mcp-registry-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/formulahendry/v0-mcp-registry-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fv0-mcp-registry-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fv0-mcp-registry-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fv0-mcp-registry-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fv0-mcp-registry-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/formulahendry","download_url":"https://codeload.github.com/formulahendry/v0-mcp-registry-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fv0-mcp-registry-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34896652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"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":[],"created_at":"2025-10-05T18:57:59.571Z","updated_at":"2026-06-28T16:31:30.176Z","avatar_url":"https://github.com/formulahendry.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MCP Server Registry API\n\nNext.js (App Router) API implementing the [Model Context Protocol Server Registry OpenAPI specification](https://github.com/modelcontextprotocol/registry/raw/refs/heads/main/docs/reference/api/openapi.yaml).\n\n## Features\n\n- 🔐 JWT auth (in-memory users for now)\n- 📊 Cursor pagination\n- ✅ Joi validation per route\n- 📚 OpenAPI specification at `/v0/openapi.yaml`\n- 🐳 Docker-ready\n- 🎯 Fully compliant with MCP Registry API spec\n\n## Quick Start\n\n### Development\n```bash\nnpm install\nnpm run dev\n# Base URL: http://localhost:3000\n```\n\n### Production\n```bash\nnpm run build\nnpm start\n```\n\n### Docker\n```bash\ndocker-compose up -d\ndocker-compose logs -f\n```\n\n## API Endpoints\n\n### MCP Registry API (v0) - OpenAPI Compliant\n- GET `/v0/servers` - List MCP servers\n- GET `/v0/servers/{id}` - Get MCP server details  \n- POST `/v0/publish` - Publish MCP server (auth required)\n- GET `/v0/openapi.yaml` - OpenAPI specification\n\n### Legacy API (deprecated)\n- POST `/api/auth/register`\n- POST `/api/auth/login`\n- GET `/api/servers`\n- GET `/api/servers/[id]`\n- POST `/api/publish` (auth required)\n- GET `/api/health`\n- GET `/api/api-docs`\n\n## Environment Variables\n```env\nJWT_SECRET=your-super-secret-jwt-key\nNODE_ENV=development\n```\n\n## Examples\n\n## OpenAPI Specification Compliance\n\nThis implementation is fully compliant with the [MCP Server Registry OpenAPI spec](https://github.com/modelcontextprotocol/registry/raw/refs/heads/main/docs/reference/api/openapi.yaml).\n\n### Key Changes from Legacy API:\n- **New v0 endpoints**: All new endpoints follow `/v0/*` pattern\n- **Updated data models**: Removed `VersionDetail`, simplified `Server` interface\n- **Metadata restructure**: `_meta` now uses proper reverse DNS namespacing:\n  - `io.modelcontextprotocol.registry/publisher-provided`\n  - `io.modelcontextprotocol.registry/official`\n- **Simplified pagination**: Removed page-based pagination, cursor-only\n- **Status enum**: Only `active` and `deprecated` (removed `beta`)\n- **Deterministic server IDs**: Server IDs are now generated deterministically from server names using UUIDv5, ensuring consistency across application restarts\n\n### Specification Highlights:\n- **Cursor pagination**: `?cursor=base64_encoded_position\u0026limit=30`\n- **Version filtering**: `?version=1.0.2` on server detail endpoint\n- **JWT Authentication**: Bearer token for publish endpoint\n- **Comprehensive schemas**: Full OpenAPI 3.1.0 specification available\n\n## Example API Usage\n\n### OpenAPI Compliant (v0)\n\nList Servers\n```bash\ncurl http://localhost:3000/v0/servers?limit=10\n```\n\nGet Server Details\n```bash\ncurl http://localhost:3000/v0/servers/550e8400-e29b-41d4-a716-446655440000?version=1.0.2\n```\n\nGet Deterministic Server ID\n```bash\ncurl \"http://localhost:3000/v0/servers/id-lookup?name=io.modelcontextprotocol/filesystem\"\n```\n\nPublish Server\n```bash\ncurl -X POST http://localhost:3000/v0/publish \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer YOUR_JWT_TOKEN\" \\\n  -d '{\n    \"name\": \"io.modelcontextprotocol/example\",\n    \"description\": \"Example MCP server implementation\",\n    \"version\": \"1.0.0\",\n    \"status\": \"active\",\n    \"repository\": {\n      \"url\": \"https://github.com/modelcontextprotocol/example\",\n      \"source\": \"github\",\n      \"id\": \"550e8400-e29b-41d4-a716-446655440000\"\n    },\n    \"packages\": [{\n      \"registry_type\": \"npm\",\n      \"registry_base_url\": \"https://registry.npmjs.org\",\n      \"identifier\": \"@modelcontextprotocol/server-example\",\n      \"version\": \"1.0.0\"\n    }]\n  }'\n```\n\n### Legacy API (for backwards compatibility)\n\nRegister\n```bash\ncurl -X POST http://localhost:3000/api/auth/register \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"username\":\"alice\",\"email\":\"user@example.com\",\"password\":\"password123\"}'\n```\n\nList Servers (Legacy)\n```bash\ncurl http://localhost:3000/api/servers?limit=10\n```\n\n## Architecture\n```\napp/\n  v0/                      # OpenAPI compliant endpoints\n    servers/route.ts\n    servers/[id]/route.ts\n    publish/route.ts\n    openapi.yaml/route.ts\n  api/                     # Legacy endpoints (backwards compatibility)\n    auth/login/route.ts\n    auth/register/route.ts\n    servers/route.ts\n    servers/[id]/route.ts\n    publish/route.ts\n    health/route.ts\n    api-docs/route.ts\nsrc/\n  services/\n  middleware/  \n  types/                   # Updated to match OpenAPI spec\n```\n\n## Contributing\n1. Fork\n2. Branch  \n3. Code (ensure OpenAPI compliance)\n4. Test against specification\n5. PR\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformulahendry%2Fv0-mcp-registry-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fformulahendry%2Fv0-mcp-registry-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformulahendry%2Fv0-mcp-registry-api/lists"}