Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Simple Mcp

    A simple TypeScript library for creating MCP servers.

    1 stars
    TypeScript
    Updated Mar 28, 2025
    ai
    mcp
    model-context-protocol

    Table of Contents

    • Features
    • Installation
    • Quickstart
    • Class-based Implementation
    • Examples
    • Contributing
    • License

    Table of Contents

    • Features
    • Installation
    • Quickstart
    • Class-based Implementation
    • Examples
    • Contributing
    • License

    Documentation

    Simple MCP

    A simple TypeScript library for creating MCP (Model Context Protocol) servers.

    Features

    • Simple API: Create MCP servers with minimal code
    • Type Safety: Full TypeScript integration
    • Parameter Validation: Built-in validation with Zod
    • MCP Compatible: Fully implements the Model Context Protocol

    Installation

    bash
    npm install simple-mcp

    Quickstart

    typescript
    import { McpServer } from 'simple-mcp';
    import { z } from 'zod';
    
    // Create a server instance
    const server = new McpServer({ name: 'my-server' });
    
    // Register the tool with the server
    server.tool({
      name: 'greet',
      parameters: {
        name: z.string().describe('Person\'s name')
      },
      execute: async ({ name }) => {
        return {
          content: [
            {
              type: 'text',
              text: `Hello, ${name}! Nice to meet you.`
            }
          ]
        };
      }
    });
    
    // Start the server
    server.start({ transportType: 'stdio' });

    Class-based Implementation

    You can also implement MCP tools using classes:

    typescript
    import { McpServer, type McpTool } from 'simple-mcp';
    import { z, ZodObject } from 'zod';
    
    const parameters = {
      name: z.string().describe('The name is required'),
    };
    
    class GreetTool implements McpTool {
      public readonly name = 'greet';
      public readonly parameters = parameters;
    
      public async execute({ name }: z.infer>) {
        return {
          content: [
            {
              type: 'text',
              text: `Hello, ${name}! Nice to meet you.`,
            },
          ],
        };
      }
    }
    
    // Initialize a new MCP server with the name 'greet-server'
    const server = new McpServer({ name: 'greet-server' });
    
    // Create an instance of the GreetTool class
    const greetTool = new GreetTool();
    
    // Register the tool with the server
    server.tool(greetTool);
    
    // Start the server using stdio as the transport method
    server.start({ transportType: 'stdio' });

    Examples

    Check out the examples directory for more complete examples:

    • Greeting Tool - Simple greeting example
    • Calculator Tool - Mathematical operations example

    Contributing

    Contributions are welcome! Feel free to open issues or submit pull requests.

    License

    MIT

    Similar MCP

    Based on tags & features

    • AN

      Anilist Mcp

      TypeScript·
      57
    • MC

      Mcp Ipfs

      TypeScript·
      11
    • MC

      Mcp Open Library

      TypeScript·
      42
    • LI

      Liveblocks Mcp Server

      TypeScript·
      11

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • AN

      Anilist Mcp

      TypeScript·
      57
    • MC

      Mcp Ipfs

      TypeScript·
      11
    • MC

      Mcp Open Library

      TypeScript·
      42
    • LI

      Liveblocks Mcp Server

      TypeScript·
      11

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k