Skip to main content
Glama
mcp-server-data-tools

mcp-server-data-tools

by mmm-magdy
README.md
# mcp-server-data-tools

[![npm version](https://img.shields.io/npm/v/mcp-server-data-tools)](https://www.npmjs.com/package/mcp-server-data-tools)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Node.js CI](https://github.com/mmm-magdy/mcp-server-data-tools/actions/workflows/ci.yml/badge.svg)](https://github.com/mmm-magdy/mcp-server-data-tools/actions)

A lightweight [MCP](https://modelcontextprotocol.io/) server packed with everyday data transformation tools.

Converts formats, hashes strings, generates UUIDs, and handles the small jobs you do ten times a day.

## Tools included

| Tool | What it does |
|------|-------------|
| `json_format` | Pretty-print or minify JSON |
| `json_to_csv` | Convert a JSON array of objects to CSV |
| `csv_to_json` | Convert CSV text to a JSON array |
| `json_path` | Extract values using dot-notation paths |
| `base64_encode` | Encode text to Base64 |
| `base64_decode` | Decode Base64 to text |
| `hash` | Hash a string with SHA-256, SHA-512, or MD5 |
| `uuid` | Generate random UUIDs (v4) |
| `url_encode` | URL-encode a string |
| `url_decode` | Decode a URL-encoded string |
| `text_stats` | Count characters, words, lines, and sentences |
| `regex_match` | Test a string against a regex and return matches |
| `timestamp` | Convert between Unix timestamps and dates |
| `number_base` | Convert numbers between binary, octal, decimal, and hex |

## Installation

```bash
npm install -g mcp-server-data-tools
```

## Usage with Claude Desktop

Add this to your Claude Desktop configuration file:

**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`

```json
{
  "mcpServers": {
    "data-tools": {
      "command": "npx",
      "args": ["-y", "mcp-server-data-tools"]
    }
  }
}
```

Then restart Claude Desktop and you're good to go.

## Examples

- Convert CSV to JSON and back
- Generate a batch of UUIDs for test data
- Hash a string with SHA-256
- Pretty-print or minify JSON
- Extract nested values with dot-notation paths
- Convert timestamps, number bases, and encodings

## Development

```bash
git clone https://github.com/mmm-magdy/mcp-server-data-tools.git
cd mcp-server-data-tools
npm install
npm start
```

## Contributing

Contributions are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

## License

[MIT](LICENSE)