cd /news/developer-tools/how-to-build-and-debug-mcp-servers-f… Β· home β€Ί topics β€Ί developer-tools β€Ί article
[ARTICLE Β· art-74533] src=dev.to β†— pub= topic=developer-tools verified=true sentiment=↑ positive

How to Build and Debug MCP Servers for Claude Desktop in 5 Seconds πŸ”¨

A developer built mcp-forge, an open-source toolkit for building, testing, and debugging MCP servers for Claude Desktop and other LLM clients. The tool provides zero-setup commands for serving, inspecting, initializing, and visualizing MCP servers, and can be run directly via npx.

read2 min views1 publishedJul 26, 2026

Model Context Protocol (MCP) by Anthropic is rapidly becoming the open standard for connecting LLMs like Claude Desktop, Cursor, and Windsurf to local dev tools, APIs, and databases.

However, setting up an MCP server from scratch, configuring stdio transports, and debugging JSON-RPC requests in the terminal can be tedious.

To solve this, I built ** mcp-forge** β€” an open-source Swiss-Army developer toolkit and inspector for MCP servers.

mcp-forge

? mcp-forge

gives you everything you need to build, test, inspect, and run MCP servers with zero setup overhead:

npx mcp-forge serve

npx mcp-forge inspect <cmd>

npx mcp-forge init <name>

tsup

bundler, and Vitest.npx mcp-forge ui

You don't even need to install anything globally! You can run mcp-forge

directly via npx

.

mcp-forge

to Claude Desktop Add this snippet to your claude_desktop_config.json

:

{
  "mcpServers": {
    "mcp-forge": {
      "command": "npx",
      "args": ["-y", "mcp-forge", "serve"]
    }
  }
}

Now Claude can automatically inspect your Git status, fetch system memory/CPU telemetry, validate Mermaid diagram syntax, and test REST endpoints!

npx mcp-forge init my-awesome-mcp-server
cd my-awesome-mcp-server
npm install
npm run dev

You get a fully-typed MCP server template with @modelcontextprotocol/sdk configured and ready to publish.

npx mcp-forge inspect node ./dist/index.js

mcp-forge will connect to the stdio transport, list all declared tools, prompts, and resources, and allow you to test tool calls directly with live JSON-RPC logging.

🌐 Visual Web Dashboard

Prefer a GUI over terminal output? Launch the local web dashboard:

npx mcp-forge ui

Open http://localhost:3000 in your browser to inspect active MCP tools and watch live WebSocket traffic.

🀝 Open Source & Contributing

mcp-forge is 100% open-source under the MIT License. We welcome contributions from developers worldwide! Whether you want to add a new built-in tool (e.g. SQLite inspector, Docker manager) or improve the CLI, check out our GitHub repository.

⭐ Check out the project on GitHub: https://github.com/sweecksss/mcp-forge

If you find mcp-forge useful, please leave a ⭐️ Star on GitHub β€” it helps the project grow!

Happy coding! πŸš€

── more in #developer-tools 4 stories Β· sorted by recency
── more on @anthropic 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/how-to-build-and-deb…] indexed:0 read:2min 2026-07-26 Β· β€”