Chapter 2
Setting Up Your MCP Environment
IN THIS CHAPTER
Choosing between Claude Desktop and API integration
Getting Claude Desktop up and running with MCP
Testing your setup with ready-made MCP servers
Making your first real MCP connection
Understanding the magic behind what you just built
Setting up new technology can feel like assembling furniture without instructions — lots of pieces, unclear diagrams, and leftover screws that make you wonder what you have missed. The good news? Setting up MCP is more straightforward than you might think. This chapter walks you through everything step-by-step, from choosing your setup approach to running your first MCP server and understanding what’s happening under the hood.
After reading this chapter, you’ll have a working MCP environment and the confidence to expand it. Let’s get started.
Choosing Your Path: Claude Desktop versus API Integration
Before you download anything or write a single line of code, you need to make a choice: Are ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access