Building Your First MCP Server: A Beginner's Roadmap

Plants.work · · upskilling
Building Your First MCP Server: A Beginner's Roadmap

A six-step overview from choosing a problem and designing tools to testing with MCP Inspector and connecting to Claude Desktop, plus common beginner mistakes.

You are a developer or data analyst who uses Claude or ChatGPT every day, and you start thinking: "It would be great if the AI could search our company policy handbook by itself." The answer is to build your own MCP Server. This article is a roadmap, so you know what lies ahead before you start.

What is an MCP Server?

According to the MCP Server Concepts documentation, a Server is a program that exposes capabilities to AI applications through a standard interface. It can offer three things: Tools (functions the model can call), Resources (data for context) and Prompts (instruction templates). For your first Server, focus on Tools, just as the official guide does with a weather Server that has only two tools.

Before you start: two decisions

Language and SDK

The official Build an MCP server guide has examples in Python, TypeScript, Java, Kotlin and C#. Pick the language your team knows best. The SDK handles the protocol details; you write the tool logic.

Local or on the internet

A local Server uses the stdio transport and runs on the same machine as the AI app, which is ideal for learning. A remote Server uses Streamable HTTP and can be shared by many people, but you must handle login and security too. Beginners should start local.

Six steps at a glance

1. Choose a narrow problem

Start with one task with clear value, such as "search company policies by keyword", not "connect every company system".

2. Set up the environment and install the SDK

Create a new project, install the MCP SDK for your language, and prepare any API keys or data files the Server needs.

3. Design tools the model can understand

Each tool has a name, a description and an input schema. The model decides mostly from the description, so state clearly "when to use this" and what each input field means.

4. Write the logic and useful error messages

Inside a tool is ordinary code that calls an API or reads a database. When something fails, return a message explaining what went wrong so the model can adjust and retry.

5. Be careful with logging

The official guide warns that a stdio Server must never write to stdout, because it corrupts the JSON-RPC messages. Send logs to stderr or a file instead. This is one of the most common reasons a beginner's first Server does not work.

6. Test, then connect to an AI app

Use MCP Inspector, a development tool from the MCP project, to list your tools and call them one by one. Once they work, add the Server to Claude Desktop's configuration file and restart the app.

Example: a policy assistant for a Thai company

The HR team keeps dozens of policies as PDF files. You build a Server with two tools: search policies by keyword, and fetch a policy's content by ID. When an employee asks "How much can I claim for upcountry travel?", the model calls the search tool, finds the relevant policy, fetches its content and summarises it, citing which document it used.

Things to watch out for

A good first Server does not do everything. It does one job accurately and safely.

What to do next

  1. Write your problem in one sentence and list no more than three tools
  2. Complete the official Build an MCP server guide once to understand the structure
  3. Swap the weather example for your own problem
  4. Test with MCP Inspector, then connect to Claude Desktop
  5. Ask teammates to try it, and note when the AI picks the wrong tool so you can improve the descriptions

Want to try MCP with real tools before writing your own? See the course ลองใช้ MCP เชื่อม AI กับเครื่องมือจริง on Plants.work Learn, or read MCP vs API to design tools that fit the job.