mcp-devtools

mcp-devtools

A credential-free MCP server offering developer utilities such as JSON formatting, regex testing, hashing, UUID generation, base64 transforms, and JWT inspection, with no network dependencies.

Category
Visit Server

README

mcp-devtools

CI License: MIT

A small, production-quality Model Context Protocol (MCP) server exposing credential-free developer utilities. Built as a reference/demo of clean MCP server engineering: typed tool schemas, structured output, a resource, a prompt, unit tests, and an end-to-end protocol smoke test.

Zero credentials, zero network. Clone it, install, and it runs — nothing to configure, nothing to leak.

CI (.github/workflows/ci.yml) runs typecheck + unit tests + build + the wire-protocol smoke test on every push. Licensed MIT (see LICENSE).

Provenance: designed and reviewed by a human engineer (architecture, the decode-only security framing, the wire-protocol test strategy); implementation is AI-assisted. What's being sold is the engineering judgment, not the typing.

What it exposes

Tools (6):

Tool Does
json_tools Validate + format / minify / recursively sort-keys a JSON string
regex_test Run a regex against a subject; returns every match, index, and capture group (structured output)
hash_text MD5 / SHA-1 / SHA-256 / SHA-512 hex digest of text
uuid_generate Generate 1–100 RFC-4122 v4 UUIDs
base64_transform Base64 encode/decode, with an optional URL-safe alphabet
jwt_inspect Decode a JWT's header/payload + expiry (decode only — does not verify the signature)

Resource: devtools://reference/http-status-codes — common HTTP status codes as JSON. Prompt: code_review — a parameterized code-review request.

Install & run

npm install
npm run build        # compile to dist/
npm start            # run the server on stdio

Development (no build step, via tsx):

npm run dev

Verify it works

npm test             # unit tests for all tool logic (node:test)
npm run smoke        # end-to-end: spawns the server, drives it with a real MCP client

npm run smoke connects an actual MCP client over stdio, lists the tools/resource/prompt, and calls each tool — proving the wire protocol, not just the functions. Expected tail:

ALL CHECKS PASSED

Add it to an MCP client

Claude Code

claude mcp add devtools -- node /absolute/path/to/mcp-devtools/dist/server.js

Claude Desktop — add to claude_desktop_config.json:

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

Then ask the assistant things like "sort the keys in this JSON", "sha256 this string", or "decode this JWT" and it will call the tools.

Design notes (why it's built this way)

  • Tool logic is separated from transport (src/logic.ts vs src/server.ts) so every tool is unit-testable in isolation and the MCP layer stays thin.
  • Deterministic + self-contained — no network calls, no API keys, no live services. Errors are returned as isError tool results, not thrown, so the client sees a clean message.
  • jwt_inspect decodes only. Signature verification needs key material and a stated algorithm policy; conflating "decode" with "verify" is a common security mistake, so this tool is explicit about not verifying.
  • Structured output on regex_test returns a typed object (validated against the tool's outputSchema) alongside the human-readable text.

Stack

TypeScript · @modelcontextprotocol/sdk · zod · Node ≥ 20 · tests on node:test.


MIT-licensed engineering sample; provided as-is. Provenance note at the top.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured