vyshnavi-nandyala

MCP Toolkit Server

Community vyshnavi-nandyala
Updated

mcp-toolkit-server

MCP Toolkit Server

A Model Context Protocol server exposing custom tools โ€” DB queries, API calls, file I/O, and more โ€” for Claude and other AI agents.

Overview

The MCP Toolkit Server is a production-ready Model Context Protocol (MCP) server that equips Claude, ChatGPT, and other LLM agents with a rich set of tools for interacting with databases, external APIs, the file system, and more โ€” directly relevant to the agentic AI wave.

Built with TypeScript and the official @modelcontextprotocol/sdk, this server runs as a local stdio process and integrates seamlessly with Claude Desktop, the MCP Inspector, or any MCP-compatible client.

Features & Tools

Tool Description Example Use Case
db_query Execute SQL queries against SQLite (explore mode with demo DB or file mode) "Show me all users who placed orders this month"
api_call Make HTTP requests to any REST API with custom headers, params, and body Fetch data from a weather API, send a webhook
file_read Read file contents from the local filesystem Read a config file, inspect a log
file_write Write content to files (creates parent dirs automatically) Save generated code, export data
file_list List files/directories with optional recursive listing and filtering Explore a project structure
calculator Safely evaluate math expressions (no eval) Calculate compound interest, unit conversions
get_datetime Get current date/time with timezone support Timestamp logging, scheduling
json_parser Parse, validate, query, and summarize JSON data Extract fields from API responses
text_transform 17+ text operations: case conversion, slug, base64, extract emails/URLs, word count Data cleaning, text normalization
get_environment Get server environment info (OS, CPU, memory, Node.js version) Debug, context awareness

Quick Start

Prerequisites

  • Node.js >= 18.0.0
  • npm >= 9.0.0

Installation

# Clone the repository
git clone https://github.com/vyshnavi-nandyala/mcp-toolkit-server.git
cd mcp-toolkit-server

# Install dependencies
npm install

# Build the TypeScript project
npm run build

Configure Claude Desktop

Add the server to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.jsonWindows: %APPDATA%\Claude\claude_desktop_config.jsonLinux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "toolkit": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-toolkit-server/dist/index.js"]
    }
  }
}

Replace /absolute/path/to/mcp-toolkit-server with the actual path on your machine.

Restart Claude Desktop, and you'll see a ๐Ÿ”จ icon in the input area โ€” your tools are ready!

Using with MCP Inspector (Debugging)

npx @modelcontextprotocol/inspector node dist/index.js

This opens a web UI where you can manually test each tool, inspect request/response payloads, and debug issues.

Usage Examples

DB Query โ€” Explore the Demo Database

Ask Claude:

"Show me the top 5 products by price from the demo database."

Claude will use the db_query tool:

{
  "sql": "SELECT name, category, price FROM products ORDER BY price DESC LIMIT 5"
}

API Call โ€” Fetch Weather Data

Ask Claude:

"What's the current weather in San Francisco?"

Claude will use the api_call tool:

{
  "url": "https://api.open-meteo.com/v1/forecast?latitude=37.7749&longitude=-122.4194&current_weather=true",
  "method": "GET"
}

File Operations

Ask Claude:

"List all TypeScript files in my project, then read the main entry point."

Claude will chain file_list โ†’ file_read:

{ "dirPath": "/path/to/project", "extension": ".ts", "recursive": true }
{ "filePath": "/path/to/project/src/index.ts" }

JSON Parsing

Ask Claude:

"Parse this JSON and extract the first user's email: {\"users\":[{\"email\":\"[email protected]\"},{\"email\":\"[email protected]\"}]}"

{
  "json": "{\"users\":[{\"email\":\"[email protected]\"}]}",
  "operation": "query",
  "path": "users[0].email"
}

Text Transform

Ask Claude:

"Convert this to camelCase and slug: 'My Project Name'"

{ "text": "My Project Name", "operation": "camelcase" }
// โ†’ "myProjectName"

{ "text": "My Project Name", "operation": "slug" }
// โ†’ "my-project-name"

Architecture

mcp-toolkit-server/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ index.ts                  # Entry point โ€” creates and starts the MCP server
โ”‚   โ”œโ”€โ”€ tools/
โ”‚   โ”‚   โ”œโ”€โ”€ db-query.ts           # SQLite query tool (explore + file modes)
โ”‚   โ”‚   โ”œโ”€โ”€ api-call.ts           # HTTP request tool (fetch-based)
โ”‚   โ”‚   โ”œโ”€โ”€ file-operations.ts    # file_read, file_write, file_list
โ”‚   โ”‚   โ”œโ”€โ”€ calculator.ts         # Safe math expression evaluator
โ”‚   โ”‚   โ”œโ”€โ”€ datetime.ts           # Date/time with timezone support
โ”‚   โ”‚   โ”œโ”€โ”€ json-parser.ts        # Parse, query, validate, summarize JSON
โ”‚   โ”‚   โ”œโ”€โ”€ text-transform.ts     # 17+ text manipulation operations
โ”‚   โ”‚   โ””โ”€โ”€ environment.ts        # System environment info
โ”‚   โ””โ”€โ”€ utils/
โ”‚       โ””โ”€โ”€ helpers.ts            # Shared response-building utilities
โ”œโ”€โ”€ tests/
โ”‚   โ””โ”€โ”€ tools.test.ts             # Unit tests (vitest)
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ tsconfig.json
โ””โ”€โ”€ README.md

Design Principles

  1. Safety First โ€” SQL injection prevention, no eval(), read-only defaults for DB queries
  2. Modular โ€” Each tool is a self-contained module; easy to add/remove tools
  3. Typed โ€” Full TypeScript with Zod schemas for input validation
  4. Observable โ€” Structured JSON responses with metadata (timing, counts, types)
  5. Developer-Friendly โ€” MCP Inspector support, comprehensive README, unit tests

Adding Custom Tools

Adding a new tool is straightforward:

// src/tools/my-custom-tool.ts
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";

export function registerMyCustomTool(server: McpServer): void {
  server.tool(
    "my_custom_tool",
    "Description of what this tool does.",
    {
      param1: z.string().describe("First parameter."),
      param2: z.number().optional().describe("Optional second parameter."),
    },
    async ({ param1, param2 }) => {
      // Your logic here
      return {
        content: [
          { type: "text", text: JSON.stringify({ result: "..." }, null, 2) },
        ],
      };
    }
  );
}

Then register it in src/index.ts:

import { registerMyCustomTool } from "./tools/my-custom-tool.js";
// ...
registerMyCustomTool(this.server);

Development

# Run in development mode (no build step needed)
npm run dev

# Build for production
npm run build

# Run tests
npm test

# Watch tests
npm run test:watch

# Lint
npm run lint

Why This Matters: The Agentic AI Wave

MCP (Model Context Protocol) is the open standard that allows AI agents like Claude to interact with external tools, data sources, and services. Instead of being confined to a chat window, MCP servers give agents the ability to:

  • Query databases with natural language
  • Call external APIs to fetch real-time data
  • Read and write files on the local filesystem
  • Perform computations and data transformations
  • Compose multi-step workflows by chaining tools together

This server is a concrete, production-ready implementation of that vision โ€” a toolkit that transforms Claude from a conversational AI into an actionable agent capable of interacting with the real world.

License

MIT License. See LICENSE for details.

MCP Server ยท Populars

MCP Server ยท New

    mcparmory

    MCP Armory Registry

    Production-ready MCP servers for 70+ APIs โ€” GitHub, Google, Notion, Jira & more. Generated from OpenAPI specs, tested against live APIs. Works with Claude Desktop, Cursor, Codex & Claude Code.

    Community mcparmory
    666ghj

    mirofish

    A Simple and Universal Swarm Intelligence Engine, Predicting Anything. ็ฎ€ๆด้€š็”จ็š„็พคไฝ“ๆ™บ่ƒฝๅผ•ๆ“Ž๏ผŒ้ข„ๆต‹ไธ‡็‰ฉ

    Community 666ghj
    luminarylane

    ๐ŸŽจ Fal.ai MCP Server

    MCP server for Fal.ai - Generate images, videos, music and audio with Claude

    Community luminarylane
    childrentime

    reactuse

    115+ production-ready React Hooks for sensors, UI, state & browser APIs. Tree-shakable, SSR-safe, TypeScript-first. Used by Shopee, PDD & Ctrip. Inspired by VueUse.

    Community childrentime
    agenticmail

    ๐ŸŽ€ AgenticMail

    Email & SMS infrastructure for AI agents โ€” send and receive real email and text messages programmatically

    Community agenticmail