1. Conduid
  2. Developer Tools
  3. registry-types
MCP server · Developer Tools

registry-types

TypeScript types for the Model Context Protocol (MCP) Registry API

Unclaimed science
39Low

Scored yesterday · breakdown

About registry-types

registry-types is an MCP server published by git+kortex-hub in the Developer Tools category: typeScript types for the Model Context Protocol (MCP) Registry API.

The repository has 2 stars and 0 forks, with the last commit 5 months ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

Install
npx @kortex-hub/mcp-registry-types
Claude Code
claude mcp add registry-types -- npx -y @kortex-hub/mcp-registry-types
npx
npx -y @kortex-hub/mcp-registry-types

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about registry-types

Powered by Claude · Grounded in docs

I know everything about registry-types. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

4 checks have not been run yet.

README

MCP Registry Types

npm version

TypeScript type definitions for the Model Context Protocol (MCP) Registry API, providing complete type safety when interacting with MCP registry endpoints.

What is MCP?

The Model Context Protocol (MCP) is an open standard that enables AI assistants to securely access and interact with external tools, data sources, and services. The MCP Registry is a centralized repository where developers can publish and discover MCP servers.

What does this package do?

This package provides:

  • 🎯 Complete TypeScript types for all MCP Registry API endpoints
  • 🔒 Type-safe API interactions with full IntelliSense support
  • 📋 Auto-generated definitions from the official OpenAPI specification
  • 🔄 Always up-to-date types synced with the latest MCP Registry API

The types are automatically generated from the official MCP Registry OpenAPI specification, ensuring they stay current with API changes.

Installation

npm install @kortex-hub/mcp-registry-types

Or with your preferred package manager:

# pnpm
pnpm add @kortex-hub/mcp-registry-types

# yarn  
yarn add @kortex-hub/mcp-registry-types

# bun
bun add @kortex-hub/mcp-registry-types

Usage

Basic API Client Example

import type { paths, components } from '@kortex-hub/mcp-registry-types';

// Type for server list response
type ServerListResponse = paths['/v0/servers']['get']['responses']['200']['content']['application/json'];

// Type for a single server
type Server = components['schemas']['Server'];

// Type for server details (used in publishing)
type ServerDetail = components['schemas']['ServerDetail'];

// Example API client usage
async function fetchServers(cursor?: string, limit?: number): Promise<ServerListResponse> {
  const params = new URLSearchParams();
  if (cursor) params.set('cursor', cursor);
  if (limit) params.set('limit', limit.toString());
  
  const response = await fetch(`https://registry.modelcontextprotocol.io/v0/servers?${params}`);
  return response.json();
}

async function publishServer(serverDetail: ServerDetail): Promise<ServerDetail> {
  const response = await fetch('https://registry.modelcontextprotocol.io/v0/publish', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'Authorization': `Bearer ${process.env.MCP_REGISTRY_TOKEN}`,
    },
    body: JSON.stringify(serverDetail),
  });
  
  if (!response.ok) {
    throw new Error(`Failed to publish server: ${response.statusText}`);
  }
  
  return response.json();
}

With Popular HTTP Clients

Using with fetch (native)

import type { paths } from '@kortex-hub/mcp-registry-types';

type ServerListParams = paths['/v0/servers']['get']['parameters']['query'];
type ServerListResponse = paths['/v0/servers']['get']['responses']['200']['content']['application/json'];

const servers: ServerListResponse = await fetch('/api/v0/servers').then(res => res.json());

Using with axios

import axios from 'axios';
import type { paths, components } from '@kortex-hub/mcp-registry-types';

const api = axios.create({
  baseURL: 'https://registry.modelcontextprotocol.io',
});

// Get servers with full type safety
const response = await api.get<paths['/v0/servers']['get']['responses']['200']['content']['application/json']>('/v0/servers');
const servers = response.data.servers;

Using with openapi-fetch

import createClient from 'openapi-fetch';
import type { paths } from '@kortex-hub/mcp-registry-types';

const client = createClient<paths>({ 
  baseUrl: 'https://registry.modelcontextprotocol.io' 
});

const { data, error } = await client.GET('/v0/servers', {
  params: {
    query: {
      limit: 10,
      cursor: 'abc123'
    }
  }
});

if (error) {
  console.error('API Error:', error);
} else {
  console.log('Servers:', data.servers);
}

Working with Server Objects

import type { components } from '@kortex-hub/mcp-registry-types';

type Server = components['schemas']['Server'];
type Package = components['schemas']['Package'];
type Remote = components['schemas']['Remote'];

function processServer(server: Server) {
  console.log(`Server: ${server.name} v${server.version}`);
  console.log(`Description: ${server.description}`);
  
  // Work with packages (different installation methods)
  server.packages?.forEach((pkg: Package) => {
    if (pkg.registryType === 'npm') {
      console.log(`NPM package: ${pkg.identifier}`);
    } else if (pkg.registryType === 'pypi') {
      console.log(`Python package: ${pkg.identifier}`);
    }
  });
  
  // Work with remote configurations
  server.remotes?.forEach((remote: Remote) => {
    console.log(`Remote: ${remote.type} -> ${remote.url}`);
  });
}

Available Types

The package exports the following main type categories:

API Endpoints (paths)

  • /v0/servers - List and retrieve MCP servers
  • /v0/servers/{id} - Get specific server details
  • /v0/publish - Publish new servers (optional endpoint)

Data Models (components.schemas)

  • Server - Basic server information
  • ServerDetail - Complete server specification for publishing
  • ServerList - Paginated list of servers
  • Package - Installation package information (npm, pip, etc.)
  • Remote - Remote server configuration
  • Repository - Source code repository details

Request/Response Types

All API endpoints include complete request parameter and response body types with proper error handling.

API Reference

For complete API documentation, see:

Related Resources

Development

This package uses automated type generation:

# Generate types from OpenAPI spec
pnpm generate

# This runs: npx openapi-typescript https://raw.githubusercontent.com/modelcontextprotocol/registry/refs/tags/v1.0.0/docs/reference/api/openapi.yaml -o src/schema.d.ts --export-type

The types are generated from the official MCP Registry OpenAPI specification and should not be manually edited.

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Changelog

See GitHub Releases for version history and changes.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About registry-types

How do I install registry-types?

Run npx @kortex-hub/mcp-registry-types, then add the server to your MCP client's configuration.

Is registry-types safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 1 of the 2 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is registry-types still maintained?

Yes — the last commit was 5 months ago. The repository has 2 stars and 0 forks.