Uni-Sine
AI
+25XP
AICourses

MCP Servers: connect AI apps to tools, then build your own

MCP Servers is an interactive MCP course about the Model Context Protocol, the open standard that lets AI apps use outside tools and data. In 25 short sections it covers why MCP exists, hosts, clients and servers, the three things a server can offer, the JSON-RPC messages underneath, local and remote transports, adding a ready-made server, approvals and safety, and building, testing and sharing your own server in TypeScript or Python.

MCP is how an assistant such as Claude can read your files, query a database or control another app. Once you understand it, you can plug in thousands of existing servers and write one for anything you use.

What the MCP course covers

SectionsTopicWhat you do
1 to 3What MCP is, and one protocol for every toolCount the integrations needed with and without MCP
4 to 7Hosts, clients and servers; tools, resources and promptsMatch each role, then classify features as a tool, a resource or a prompt
8 to 11JSON-RPC messages and transportsFind the line of a message that does a job, then sort facts into stdio or Streamable HTTP
12 to 15Adding a server, secrets, approvals and safetyGive a server its API key, then allow or deny tool calls
16 to 20Building a server in TypeScript and Python, and testing itFill in a registerTool call, then diagnose common problems
21 to 22Designing good toolsSort names, descriptions and errors into helpful and unhelpful
23 to 25Going remote, OAuth sign-in, and what nextPut the sign-in and build steps in order

Why one protocol helps

Without a shared standard, every AI app needs custom code for every tool: three apps and four tools means 3 × 4 = 12 integrations. With MCP, each app speaks MCP once and each tool offers one MCP server, so the same three apps and four tools need only 3 + 4 = 7 pieces.

How it works

The host is the AI app you use, such as Claude Desktop, VS Code or Cursor. It runs a client for each server it connects to. A server can offer tools (actions the model can call), resources (data it can read) and prompts (ready-made templates). They talk in small JSON-RPC 2.0 messages, carried either over stdio, for a server running on your own computer, or Streamable HTTP, for a remote one.

Building your own

The official SDKs make a server a few dozen lines. You register each tool with a name, a description and a schema for its inputs, test it in the MCP Inspector, then share it remotely. The course is firm on safety: a local server runs with your permissions, so install only trusted servers, give each the least access it needs and read approval prompts before allowing them.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "get_weather", "arguments": { "city": "Leeds" } }
}

Try a question from the course

Decide what the model does with the feature. If it performs an action, such as sending an email or creating a calendar event, it is a tool. If it is data to read, such as the contents of a file, it is a resource. If it is a reusable template the user picks, such as "summarise this meeting", it is a prompt.

Now classify a few features, then press Mark to check your answers in the course.

Multiple choice: is each feature a tool, a resource or a prompt?

Press Mark to have your answer marked in the MCP Servers course.

Who this course is for

  • Developers who want their app, API or data available inside AI assistants.
  • Power users who want to connect Claude, Cursor or VS Code to their files, GitHub or databases safely.
  • Teams deciding whether to build an MCP server, who need to understand what it involves.

What you need to know first

The first half needs no coding, just comfort with editing a JSON config file. The build sections use TypeScript or Python, so some programming helps; the APIs course covers JSON and requests, and AI Prompt Engineering covers how models use tools.

How long it takes

There are 25 sections and most take a few minutes. Learners without a plan can open two sections of a course a day, in order, so the whole course takes 13 days. A plan removes the daily limit and lets you go straight to building a server.

Guided courseAutomate Your Life with AIPut connected AI tools to work on emails, documents, spreadsheets and research.

Common questions

Is this MCP course free?
You can take every section without paying, two sections a day, in order. A plan removes the daily limit and opens any section straight away.
What is MCP in AI?
The Model Context Protocol, an open standard that lets AI applications connect to outside tools and data through servers. An app that speaks MCP can use any MCP server without custom code for each one.
What is an MCP server?
A program that offers tools, resources or prompts to AI apps using the Model Context Protocol. It might wrap a file system, a database, a website's API or another app.
Is it hard to build an MCP server?
Not with the official SDKs. A simple server with one tool is a few dozen lines of TypeScript or Python. The course walks through it, then shows how to test it with the MCP Inspector.
Are MCP servers safe?
They can be, if you are careful. A local server runs with your permissions, so install servers only from sources you trust, give each the least access it needs and check approval prompts before allowing a tool call.
What is the difference between stdio and Streamable HTTP?
They are MCP's two standard transports. stdio is for a server running on your own computer, started by the app. Streamable HTTP is for a remote server reached over the web by its URL.

Revision cards

Say the answer first, then flip the card to check it.

Where to go next

  • Solve it

    Code Editor

    Write and run code right in your browser

    Open the tool
  • Learn it

    MCP Servers

    What MCP servers are, how to plug them into AI apps and how to build your own

    Start the course
Read next
AI · Using AIHow to use MCP servers: connect AI apps to your toolsHow to use MCP servers: what MCP is, how hosts, clients and servers fit together, adding a local or remote server to an AI app, and using them safely.