mcp-server-typescript
Overview
The mcp-server-typescript is a TypeScript project that serves as a demonstration of a server built using Bun, a fast all-in-one JavaScript runtime.
To use this project, you need to install the dependencies using the command bun install, and then run the server with bun run index.ts.
- Built with TypeScript for type safety and better development experience. - Utilizes Bun for fast execution and easy setup. - Simple commands to install and run the server.
- Demonstrating server setup using Bun and TypeScript.
- Learning how to create a server with modern JavaScript tools.
- Serving as a template for building more complex applications.
Add to your AI client
Use these steps to connect mcp-server-typescript in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-server-demo-a1740942002": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-demo-a1740942002"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-server-demo-a1740942002": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-demo-a1740942002"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-demo-a1740942002": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-demo-a1740942002"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-demo-a1740942002": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-demo-a1740942002"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-demo-a1740942002": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-demo-a1740942002"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-demo-a1740942002": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-demo-a1740942002"
]
}
}
}FAQ
What is Bun?
Bun is a fast all-in-one JavaScript runtime that allows you to run JavaScript and TypeScript applications efficiently.
Is this project suitable for production use?
This project is a demo and may require further development and testing before being used in production.
How can I contribute to this project?
You can contribute by forking the repository on GitHub and submitting pull requests with improvements or features.