Skip to main content
Glama
Zaby2

My Tools MCP Server

by Zaby2
README.md
# MCP Server - My Tools

A Model Context Protocol (MCP) server that provides utility tools for file operations and calculations.

## Features

- **read_file** - Reads file content from a specified path
- **calculator** - Evaluates mathematical expressions

## Installation

```bash
npm install
```

## Usage

Start the MCP server:

```bash
node mcp-server.js
```

The server communicates via stdio transport using the Model Context Protocol.

## Configuration

### Adding to settings.json

To use this MCP server with VS Code (or compatible editors), add the following configuration to your `settings.json`:

```json
{
  "mcp": {
    "servers": {
      "my-tools": {
        "command": "node",
        "args": ["/Users/bogdansitov/mcp/mcp-server.js"],
        "disabled": false
      }
    }
  }
}
```

**Note:** Update the path to `mcp-server.js` if the server is located elsewhere on your system.

## Available Tools

### read_file

Reads the content of a file at the given path.

**Input:**
- `path` (string) - The absolute path to the file

**Output:**
- File content as string

### calculator

Evaluates a mathematical expression.

**Input:**
- `expression` (string) - The mathematical expression to evaluate

**Output:**
- Result of the expression

## Dependencies

- [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/sdk) - MCP SDK for building MCP servers
- [readline-sync](https://www.npmjs.com/package/readline-sync) - Synchronous readline for terminal input

## License

ISC