🎉 Cyber Week: Pro for $6/month for your first 3 months, or a full year of Pro for $59. Ends Sunday, December 6. See the deal →
← AI for Software Developers
AI for Software Developers · ProLesson 7 of 7 · 12 min

Build a simple MCP server

Expose one useful tool to Claude, Copilot, Cursor and other MCP clients with a few dozen lines of TypeScript, then test and connect it.

An MCP server is a small program that offers tools (actions), resources (data) and prompts to any AI app that speaks the Model Context Protocol. Write it once, and Claude, Copilot, Cursor and other MCP clients can all use it. Here's a minimal server with one tool, using the official TypeScript SDK.

1. Set up the project

Terminal
mkdir order-status-mcp && cd order-status-mcp
npm init -y
npm pkg set type=module
npm install @modelcontextprotocol/server zod tsx

Unlock the rest of this lesson with Pro

In this lesson

  • 1. Set up the project
  • 2. Write the server
  • 3. Test it, then connect it
  • Build it safely
  • Hands-on practice with personal feedback from Arvid
  • A quick quiz to check what you learned

Unlock this lesson and every lesson in the Foundations, Advanced and Expert levels and all courses, plus certificates and a monthly allowance of AI practice, for $12/month.

Start free, upgrade anytime

Already have an account? Log in

Build a simple MCP server · ArvidAI