MCP Toolkit Server

MCP Toolkit Server

A Model Context Protocol server providing tools for DB queries, API calls, file I/O, and text transformations, enabling AI agents like Claude to perform real-world actions.

Category
访问服务器

README

MCP Toolkit Server

<p align="center"> <strong>A Model Context Protocol server exposing custom tools — DB queries, API calls, file I/O, and more — for Claude and other AI agents.</strong> </p>

<p align="center"> <img src="https://img.shields.io/badge/MCP-1.0-blue" alt="MCP Protocol" /> <img src="https://img.shields.io/badge/Node.js-18+-green" alt="Node.js" /> <img src="https://img.shields.io/badge/TypeScript-5.x-blue" alt="TypeScript" /> <img src="https://img.shields.io/badge/License-MIT-yellow" alt="License" /> </p>


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.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.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_listfile_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\":\"alice@example.com\"},{\"email\":\"bob@example.com\"}]}"

{
  "json": "{\"users\":[{\"email\":\"alice@example.com\"}]}",
  "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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选