- Explore MCP Servers
- mcp-hello-world-ts
Mcp Hello World Ts
What is Mcp Hello World Ts
mcp-hello-world-ts is a minimal Model Context Protocol (MCP) server written in TypeScript. It serves as a demonstration of creating MCP-compliant resources and tools for use with LLMs and MCP-enabled clients like Claude Desktop.
Use cases
Use cases include creating chatbots, developing interactive tools for LLMs, and integrating with applications that support the Model Context Protocol.
How to use
To use mcp-hello-world-ts, first install the necessary dependencies using ‘npm install’. Then, build the project with ‘npm run build’ and start the server using ‘npm start’. You can also configure it as a plugin/tool in MCP clients like Claude Desktop.
Key features
Key features include simple MCP resources at ‘hello://greeting’, ‘hello://info’, and ‘hello://list’, a ‘helloTool’ that echoes messages, and Stdio Transport for easy integration with MCP clients.
Where to use
mcp-hello-world-ts can be used in applications that require interaction with LLMs and MCP-enabled clients, particularly in environments where simple resource management and communication are needed.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp Hello World Ts
mcp-hello-world-ts is a minimal Model Context Protocol (MCP) server written in TypeScript. It serves as a demonstration of creating MCP-compliant resources and tools for use with LLMs and MCP-enabled clients like Claude Desktop.
Use cases
Use cases include creating chatbots, developing interactive tools for LLMs, and integrating with applications that support the Model Context Protocol.
How to use
To use mcp-hello-world-ts, first install the necessary dependencies using ‘npm install’. Then, build the project with ‘npm run build’ and start the server using ‘npm start’. You can also configure it as a plugin/tool in MCP clients like Claude Desktop.
Key features
Key features include simple MCP resources at ‘hello://greeting’, ‘hello://info’, and ‘hello://list’, a ‘helloTool’ that echoes messages, and Stdio Transport for easy integration with MCP clients.
Where to use
mcp-hello-world-ts can be used in applications that require interaction with LLMs and MCP-enabled clients, particularly in environments where simple resource management and communication are needed.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Hello World MCP Server
A minimal Model Context Protocol (MCP) server written in TypeScript. This project demonstrates how to create MCP-compliant resources and tools for use with LLMs and MCP-enabled clients like Claude Desktop.
Features
-
MCP Resources:
Provides simple resources athello://greeting,hello://info, and a resource list athello://list. -
MCP Tool:
AhelloToolthat echoes messages or returns a default greeting. -
Stdio Transport:
Communicates via standard input/output, making it easy to integrate with MCP clients.
Getting Started
Prerequisites
Install Dependencies
npm install
Build the Project
Compile TypeScript source files to JavaScript in the dist/ directory:
npm run build
Run the Server (Standalone)
npm start
This will start the MCP server via Node.js using the built output.
Run Tests
Integration tests are provided to verify the MCP server works end-to-end:
npm test
This runs the tests in src/integration.test.ts using Jest.
Using with Claude Desktop
You can configure Claude Desktop or any MCP client to use this server as a plugin/tool by specifying the command to launch the MCP server.
Example Configuration Snippet
Add the following to your Claude Desktop settings (replace the path with your actual project path):
- Replace
/path/to/mcp-hello-world-ts/with the full path to where you cloned this repo. - Make sure you have built the project (
npm run build) before starting Claude Desktop.
Project Structure
. ├── src/ │ ├── index.ts # Main MCP server entry point │ ├── resources/helloResource.ts # MCP resource definitions │ └── tools/helloTool.ts # MCP tool definition ├── dist/ # Compiled JS output ├── package.json ├── tsconfig.json ├── README.md └── ...
Customization
- To add new tools or resources, create new files in
src/resources/orsrc/tools/and register them insrc/index.ts. - Modify
helloResource.tsorhelloTool.tsto change the greeting or add additional functionality.
License
MIT License
Author
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










