Tmcp
Typescript SDK to build MCP servers in an agnostic way
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
Maintainer
Works with
Installation
NPM
npx -y tmcpManual Installation
npx -y tmcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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-stdioInstall 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 zodCreate 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}!` }]
}));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();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.
Tmcp Alternatives — Similar Developer Tools Servers
Looking for alternatives to Tmcp? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up Tmcp in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.