mcp-ts-core
by cyanheads·★ 138·Score 48
TypeScript framework for building MCP servers with auth, storage, telemetry, and multi-platform support.
Overview
@cyanheads/mcp-ts-core is a comprehensive TypeScript framework for building MCP servers. It provides declarative tools, resources, and prompt definitions with built-in support for authentication, multi-backend storage, and observability. The framework handles infrastructure plumbing like transports, config, logging, and telemetry, allowing developers to focus on domain-specific logic. It supports multiple runtimes including Bun, Node.js, and Cloudflare Workers, with optional features like DataCanvas for analytical workspaces.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose this when building production MCP servers with TypeScript, especially if you need multi-backend storage, authentication, and observability out of the box.
When NOT to choose this
Avoid if you need a simpler solution with fewer dependencies or if you're building a server for environments beyond Bun/Node/Cloudflare Workers.
Tools this server exposes
9 tools extracted from the READMEgreetGreet someone by name and return a personalized message.
searchSearch for items by query.
template_echo_messageBasic tool with format and auth options.
template_cat_factGet external API call results with error handling.
template_madlibs_elicitationInteractive tool that asks for user input.
template_code_review_samplingTool that uses LLM completion for code review.
template_image_testTool that handles image content blocks.
template_async_countdownLong-running task with progress reporting.
template_data_explorerMCP Apps tool with linked UI resource.
Note: Extracted from example code snippets in the documentation showing actual tool implementations.
Comparable tools
Installation
bunx @cyanheads/mcp-ts-core init my-mcp-server
cd my-mcp-server
bun installFor Claude Desktop:
{
"mcpServers": {
"my-mcp-server": {
"command": "node",
"args": ["dist/index.ts"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio"
}
}
}
}FAQ
- What platforms does this framework support?
- The framework supports Bun, Node.js, and Cloudflare Workers, allowing deployment across various environments.
- How does authentication work in the framework?
- The framework supports authentication modes: 'none', 'jwt', or 'oauth' (with local secret or JWKS). Auth scopes can be defined on tools and resources.
Compare mcp-ts-core with
Last updated · Auto-generated from public README + GitHub signals.