Tmcp

v1.19.4Developer Toolsstable

Typescript SDK to build MCP servers in an agnostic way

tmcphttptransport
Share:
192
Stars
0
Downloads
0
Weekly
0/5

What is Tmcp?

Tmcp is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to typescript sdk to build mcp servers in an agnostic way

Typescript SDK to build MCP servers in an agnostic way

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Typescript SDK to build MCP servers in an agnostic way

Use Cases

Build MCP servers with a TypeScript SDK in a language-agnostic way.
Support multiple transport mechanisms for flexible MCP server deployment.
paoloricciuti

Maintainer

LicenseMIT
Languagejavascript
Versionv1.19.4
UpdatedMay 14, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y tmcp

Manual Installation

npx -y tmcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Tmcp

tmcp is a TypeScript SDK for building Model Context Protocol (MCP) servers in a transport-agnostic way. It supports multiple schema validation adapters (Zod, Valibot, ArkType, Effect) and multiple transport mechanisms including stdio and HTTP, letting developers choose their preferred tooling. Developers use tmcp when they want a clean, type-safe API for registering tools, prompts, resources, and URI templates with their MCP server without being locked into a single transport or validation library.

Prerequisites

  • Node.js 18+ or Bun runtime
  • pnpm, npm, or yarn package manager
  • An MCP client such as Claude Desktop or Claude Code
  • A schema validation library (e.g. Zod) if using typed tool schemas
1

Install tmcp and a transport adapter

Install the core tmcp package along with the stdio transport adapter to start building a server that communicates over standard input/output.

pnpm install tmcp @tmcp/transport-stdio
2

Install a schema validation adapter (optional but recommended)

Choose and install one of the supported adapters for type-safe tool parameter validation. Zod is the most popular choice.

pnpm install @tmcp/adapter-zod zod
3

Create your MCP server file

Create a server entry point that initializes the McpServer with your chosen adapter and registers tools, prompts, or resources.

import { McpServer } from 'tmcp';
import { ZodAdapter } from '@tmcp/adapter-zod';
import { z } from 'zod';

const server = new McpServer(
  { name: 'my-server', version: '1.0.0', description: 'My MCP server' },
  { adapter: new ZodAdapter() }
);

server.tool({
  name: 'greet',
  description: 'Greet a user by name',
  schema: z.object({ name: z.string() })
}, async ({ name }) => ({
  content: [{ type: 'text', text: `Hello, ${name}!` }]
}));
4

Attach the stdio transport and start listening

Connect the StdioTransport to your server instance to handle MCP communication over stdin/stdout, which is how Claude Desktop spawns MCP servers.

import { StdioTransport } from '@tmcp/transport-stdio';

new StdioTransport(server).listen();
5

Configure Claude Desktop to use your server

Add an entry to your Claude Desktop configuration file pointing to your compiled server script.

{
  "mcpServers": {
    "my-tmcp-server": {
      "command": "node",
      "args": ["/path/to/your/server.js"]
    }
  }
}

Tmcp Examples

Client configuration

Claude Desktop config for a tmcp-based server running via Node.js

{
  "mcpServers": {
    "my-tmcp-server": {
      "command": "node",
      "args": ["/absolute/path/to/dist/server.js"]
    }
  }
}

Prompts to try

Once your tmcp server is running and connected, try these prompts to exercise registered tools

- "Greet me by name using the greet tool"
- "List all available tools on this server"
- "Call the calculate tool with operation add, a=5, b=3"

Troubleshooting Tmcp

Server fails to start with 'Cannot find module' errors

Ensure you have run `pnpm install` in your project directory and that all tmcp packages (including the chosen transport and adapter) are listed in package.json dependencies.

Claude Desktop does not discover the server tools

Verify the absolute path in claude_desktop_config.json points to the compiled JS output. Rebuild your TypeScript project with `tsc` before restarting Claude Desktop.

Schema validation errors when calling tools

Make sure the installed adapter version matches your validation library version. For Zod, use `@tmcp/adapter-zod` paired with Zod v3 or `@tmcp/adapter-zod-v3` if on an older version.

Frequently Asked Questions about Tmcp

What is Tmcp?

Tmcp is a Model Context Protocol (MCP) server that typescript sdk to build mcp servers in an agnostic way It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Tmcp?

Install via npm with the command: npx -y tmcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Tmcp?

Tmcp works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Tmcp free to use?

Yes, Tmcp is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "tmcp": { "command": "npx", "args": ["-y", "tmcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Tmcp?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides