MCP Toolkit Server
MCP Toolkit Server
概要
MCP Toolkit Serverは、実用レベルのModel Context Protocol (MCP)サーバーです。Claude、ChatGPT、その他のLLMエージェントが、データベース、外部API、ファイルシステムなどと対話するための豊富なツールセットを提供し、エージェント型AIの波に直接貢献します。
TypeScriptと公式の@modelcontextprotocol/sdkで構築されており、ローカルのstdioプロセスとして実行され、Claude Desktop、MCP Inspector、またはMCP互換クライアントとシームレスに統合されます。
Related MCP server: MCP Toolkit
機能とツール
ツール | 説明 | 使用例 |
| SQLiteに対してSQLクエリを実行(デモDBまたはファイルモード) | 「今月注文したすべてのユーザーを表示して」 |
| カスタムヘッダー、パラメータ、ボディを使用して任意のREST APIにHTTPリクエストを送信 | 天気APIからデータを取得、Webhookを送信 |
| ローカルファイルシステムからファイルの内容を読み取る | 設定ファイルの読み取り、ログの確認 |
| ファイルにコンテンツを書き込む(親ディレクトリを自動作成) | 生成されたコードの保存、データのエクスポート |
| ファイル/ディレクトリを一覧表示(再帰的リストやフィルタリングも可能) | プロジェクト構造の探索 |
| 数式を安全に評価( | 複利計算、単位変換 |
| タイムゾーン対応の現在の日時を取得 | タイムスタンプの記録、スケジューリング |
| JSONデータの解析、検証、クエリ、要約 | APIレスポンスからのフィールド抽出 |
| 17種類以上のテキスト操作:ケース変換、スラッグ、base64、メール/URL抽出、単語数カウント | データクリーニング、テキスト正規化 |
| サーバー環境情報の取得(OS、CPU、メモリ、Node.jsバージョン) | デバッグ、コンテキスト認識 |
クイックスタート
前提条件
Node.js >= 18.0.0
npm >= 9.0.0
インストール
# 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 buildClaude Desktopの設定
Claude Desktopの設定ファイルにサーバーを追加します:
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"]
}
}
}
/absolute/path/to/mcp-toolkit-serverを、お使いの環境の実際のパスに置き換えてください。
Claude Desktopを再起動すると、入力エリアに 🔨 アイコンが表示され、ツールが使用可能になります!
MCP Inspectorでの使用(デバッグ)
npx @modelcontextprotocol/inspector node dist/index.jsこれによりWeb UIが開き、各ツールを手動でテストしたり、リクエスト/レスポンスのペイロードを検査したり、問題をデバッグしたりできます。
使用例
DBクエリ — デモデータベースの探索
Claudeに尋ねます:
「デモデータベースから価格の高い順に上位5つの製品を表示して。」
Claudeは db_query ツールを使用します:
{
"sql": "SELECT name, category, price FROM products ORDER BY price DESC LIMIT 5"
}API呼び出し — 天気データの取得
Claudeに尋ねます:
「サンフランシスコの現在の天気は?」
Claudeは api_call ツールを使用します:
{
"url": "https://api.open-meteo.com/v1/forecast?latitude=37.7749&longitude=-122.4194¤t_weather=true",
"method": "GET"
}ファイル操作
Claudeに尋ねます:
「プロジェクト内のすべてのTypeScriptファイルをリストアップして、メインのエントリポイントを読み取って。」
Claudeは file_list → file_read をチェーンします:
{ "dirPath": "/path/to/project", "extension": ".ts", "recursive": true }
{ "filePath": "/path/to/project/src/index.ts" }JSON解析
Claudeに尋ねます:
「このJSONを解析して、最初のユーザーのメールアドレスを抽出して:
{"users":[{"email":"alice@example.com"},{"email":"bob@example.com"}]}」
{
"json": "{\"users\":[{\"email\":\"alice@example.com\"}]}",
"operation": "query",
"path": "users[0].email"
}テキスト変換
Claudeに尋ねます:
「これをcamelCaseとスラッグに変換して: 'My Project Name'」
{ "text": "My Project Name", "operation": "camelcase" }
// → "myProjectName"
{ "text": "My Project Name", "operation": "slug" }
// → "my-project-name"アーキテクチャ
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設計原則
安全第一 — SQLインジェクション防止、
eval()不使用、DBクエリのデフォルト読み取り専用設定モジュール化 — 各ツールは独立したモジュールであり、追加や削除が容易
型定義 — 入力検証にZodスキーマを使用した完全なTypeScript対応
可観測性 — メタデータ(タイミング、カウント、型)を含む構造化されたJSONレスポンス
開発者フレンドリー — MCP Inspectorのサポート、包括的なREADME、ユニットテスト
カスタムツールの追加
新しいツールの追加は簡単です:
// 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) },
],
};
}
);
}次に src/index.ts に登録します:
import { registerMyCustomTool } from "./tools/my-custom-tool.js";
// ...
registerMyCustomTool(this.server);開発
# 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なぜこれが重要なのか:エージェント型AIの波
MCP (Model Context Protocol) は、ClaudeのようなAIエージェントが外部ツール、データソース、サービスと対話できるようにするためのオープン標準です。チャットウィンドウに閉じ込められるのではなく、MCPサーバーはエージェントに以下の能力を与えます:
自然言語によるデータベースのクエリ
リアルタイムデータを取得するための外部APIの呼び出し
ローカルファイルシステム上のファイルの読み書き
計算やデータ変換の実行
ツールをチェーンすることによるマルチステップワークフローの構成
このサーバーは、そのビジョンの具体的かつ実用的な実装であり、Claudeを単なる会話型AIから、現実世界と対話可能な実行可能なエージェントへと変えるツールキットです。
ライセンス
MITライセンス。詳細は LICENSE を参照してください。
Available Tools
10 toolsapi_callA
Make an HTTP request to any external API endpoint and return the response.
Supported features:
All HTTP methods: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
Custom headers (including Authorization / Bearer tokens)
JSON and form-urlencoded request bodies
URL query parameters (via url or params)
Configurable timeout (default 15 seconds)
Response includes status code, headers, and body
Use cases:
Fetching data from REST APIs
Sending webhooks
Querying third-party services (weather, maps, etc.)
Testing and debugging API endpoints
Inputs: url (required), method, headers, body, +2 more.
calculatorA
Evaluate a mathematical expression and return the result.
Supported operations:
Arithmetic: +, -, *, /, %, **
Parentheses for grouping: (2 + 3) * 4
Common functions: abs, ceil, floor, round, sqrt, min, max
Constants: PI, E
Safety:
Does NOT use eval() — uses a safe expression parser
Rejects any non-mathematical input
Examples:
"2 + 3 * 4" → 14
"(2 + 3) * 4" → 20
"sqrt(144)" → 12
"round(3.14159, 2)" → 3.14
"max(10, 20, 30)" → 30
Inputs: expression (required).
db_queryA
Execute a SQL query against a SQLite database and return the results.
Modes:
"explore" (default): Uses a built-in in-memory demo database pre-loaded with sample tables (users, products, orders). Great for quick testing.
"file": Queries a user-specified SQLite file on disk.
Security:
In "explore" mode only SELECT statements are allowed.
In "file" mode only SELECT, EXPLAIN, and WITH ... SELECT are allowed.
DML/DDL (INSERT, UPDATE, DELETE, DROP, etc.) will be rejected.
Returns:
rows: array of objects
rowCount: number of rows returned
columns: list of column names
Inputs: sql (required), mode, dbPath, limit.
file_listA
List files and directories at a given path.
Features:
List contents of any directory
Recursive listing with configurable depth
Filter results by file extension
Returns file sizes and types
Use cases:
Exploring project structures
Finding specific file types
Auditing directory contents
Inputs: dirPath (required), recursive, extension.
file_readA
Read the contents of a file from the local filesystem.
Features:
Read entire file or a specific byte range
Automatic encoding detection (UTF-8 default)
Returns file metadata (size, last modified)
Supports any text file type
Security:
Rejects paths outside the allowed root directories
Refuses to read binary files or directories
Inputs: filePath (required), encoding.
file_writeA
Write content to a file on the local filesystem.
Features:
Creates parent directories automatically if they don't exist
Overwrites existing files or creates new ones
Supports any text encoding (default: UTF-8)
Use cases:
Saving generated code, configs, or data
Creating log files
Writing reports or exports
Inputs: filePath (required), content (required), encoding.
get_datetimeA
Get the current date and time in various formats.
Returns:
ISO 8601 string
Unix timestamp
Individual components (year, month, day, hour, minute, second)
Day of week and week number
Timezone information
This tool does not require any parameters.
Inputs: timezone.
get_environmentA
Get information about the current server environment.
Returns:
Operating system details (platform, arch, release)
Node.js version
Server process info (PID, uptime, memory usage)
CPU information
Memory (total, free, used)
Network hostname
This tool does not require any parameters. No sensitive environment variables or secrets are exposed.
Inputs: no named parameters.
json_parserA
Parse, validate, and query JSON data.
Modes:
"parse": Parse a JSON string and return it formatted.
"query": Extract a specific field using dot-notation (e.g., "data.users[0].name").
"validate": Check if a string is valid JSON and describe its structure.
"summarize": Return a schema-like summary of a JSON object's structure.
Examples:
Parse: '{"a":1,"b":2}' → pretty-printed object
Query: '{"users":[{"name":"Alice"}]}' with path "users[0].name" → "Alice"
Validate: '{"a":1}' → {"valid": true, "type": "object", "keys": ["a"]}
Inputs: json (required), operation, path.
text_transformA
Transform text using various operations.
Supported operations:
"uppercase": Convert to UPPERCASE
"lowercase": Convert to lowercase
"titlecase": Convert to Title Case
"camelcase": Convert to camelCase
"snakecase": Convert to snake_case
"kebabcase": Convert to kebab-case
"reverse": Reverse the text
"trim": Remove leading/trailing whitespace
"slug": URL-safe slug (lowercase, hyphens, no special chars)
"base64_encode": Encode to Base64
"base64_decode": Decode from Base64
"word_count": Count words, characters, sentences, and paragraphs
"remove_duplicates": Remove duplicate lines
"sort_lines": Sort lines alphabetically
"extract_emails": Extract all email addresses from text
"extract_urls": Extract all URLs from text
"hash": Simple hash summary (character frequency)
Inputs: text (required), operation (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool has a clearly distinct purpose: HTTP requests, math, SQL, file operations, datetime, environment, JSON parsing, text transformation. No overlap or ambiguity.
All tool names use snake_case consistently, with a verb_noun pattern for most (file_list, file_read, file_write, get_datetime, get_environment) and simple nouns for others (calculator, json_parser). No mixing of conventions.
10 tools is an appropriate size for a general-purpose utility toolkit, covering diverse common operations without being unwieldy or too sparse.
Covers majority of common utility tasks: HTTP, math, SQL, file I/O, datetime, environment, JSON, text transforms. Missing a file delete tool and more advanced date or CSV operations, but overall solid for the toolkit domain.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
Hosted PostgreSQL MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server built with mcp-framework that allows users to create and manage custom tools for processing data, integrating with the Claude Desktop via CLI.5-
- FlicenseNot gradedqualityDmaintenanceA comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.2-
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides AI models with structured access to external data and services, acting as a bridge between AI assistants and applications, databases, and APIs in a standardized, secure way.2-
- AlicenseNot gradedqualityDmaintenanceModel Context Protocol server that standardizes tool discovery, execution, and context management for AI applications.MIT