Cover image
Try Now
2025-02-28

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

MCP TypeScript Tools Server

A Model Context Protocol (MCP) server implementation in TypeScript that provides various utility tools for LLMs like Claude. This server includes calculator, datetime, and note-taking tools, with an extensible architecture for adding more tools.

Features

  • 🧮 Calculator tool for basic mathematical operations
  • 📅 DateTime tool for current date/time in different formats
  • 📝 Notes tool for saving and retrieving text notes
  • 🔌 Compatible with Claude for Desktop and Cursor
  • 🚀 Easy to extend with new tools

Prerequisites

  • Node.js (v16 or higher)
  • npm (comes with Node.js)
  • Claude for Desktop and/or Cursor (for using the tools)

Installation

  1. Clone the repository:
git clone <your-repo-url>
cd MCP
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Setting Up with Claude for Desktop

  1. Open or create your Claude desktop configuration file:

    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  2. Add the MCP server configuration:

{
  "mcpServers": {
    "MCPllmContext": {
      "command": "node",
      "args": [
        "ABSOLUTE_PATH_TO_YOUR_PROJECT/dist/index.js"
      ]
    }
  }
}

Replace ABSOLUTE_PATH_TO_YOUR_PROJECT with the actual path to your project directory.

  1. Restart Claude for Desktop
  2. Look for the hammer icon in the input box to confirm the tools are available

Setting Up with Cursor

  1. Open Cursor
  2. Go to Cursor Settings > Features > MCP
  3. Click on + Add New MCP Server
  4. Fill in the form:
    • Type: stdio
    • Name: MCPllmContext
    • Command: node ABSOLUTE_PATH_TO_YOUR_PROJECT/dist/index.js

Available Tools

Calculator

  • Tool name: calculate
  • Description: Evaluates mathematical expressions
  • Usage: "Calculate 2 + 2"

DateTime

  • Tool name: current-date
  • Description: Returns current date/time
  • Formats: "short" or "long"
  • Usage: "What's today's date?"

Notes

  • Tool name: save-note, get-note, list-notes
  • Description: Save and retrieve text notes
  • Usage: "Save a note titled 'Meeting' with content 'Discuss project'"

Adding New Tools

  1. Create a new file in src/tools/ (e.g., src/tools/myTool.ts)
  2. Implement your tool using the template:
import { z } from "zod";
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";

export function registerMyTools(server: McpServer) {
  server.tool(
    "tool-name",
    { 
      param: z.string().describe("Parameter description") 
    },
    async ({ param }) => {
      return {
        content: [{ type: "text", text: "Result" }]
      };
    }
  );
}
  1. Export your tool in src/tools/index.ts
  2. Register your tool in src/index.ts

Development

# Build the project
npm run build

# Run the server directly
node dist/index.js

# Watch for changes (if you have nodemon installed)
nodemon dist/index.js

Troubleshooting

Claude for Desktop Issues

  • Check the logs at %APPDATA%\Claude\logs\mcp*.log (Windows) or ~/Library/Logs/Claude/mcp*.log (macOS)
  • Verify the path in claude_desktop_config.json is absolute and correct
  • Make sure the server is built (npm run build)
  • Restart Claude for Desktop after configuration changes

Cursor Issues

  • Verify the command path in Cursor's MCP settings
  • Try refreshing the tool list in the MCP settings
  • Check Cursor's logs for any error messages

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Gil kaminski
  • Make sure you are post-ready before you post on social media

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • OffchainLabs
  • Implementación de la prueba de estaca Ethereum

  • huahuayu
  • Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.

  • deemkeen
  • Controle su MBOT2 con un combo de potencia: MQTT+MCP+LLM

  • zhaoyunxing92
  • 本项目是一个钉钉 MCP (Protocolo del conector de mensajes )服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 支持员工信息查询和消息发送等功能。 支持员工信息查询和消息发送等功能。

  • pontusab
  • La comunidad de cursor y windsurf, encontrar reglas y MCP

    Reviews

    1 (1)
    Avatar
    user_inCFStiY
    2025-04-18

    As a dedicated user of MCP-Server, I am thoroughly impressed with its seamless integration and robust performance. Albo3 has created a powerful tool that simplifies server management with clear, concise instructions. The community and support around this product are also top-notch. Highly recommend checking it out at https://github.com/Albo3/MCP-Server!