diff --git a/quickstart.mdx b/quickstart.mdx index a3c810a..0112624 100644 --- a/quickstart.mdx +++ b/quickstart.mdx @@ -19,7 +19,7 @@ We'll build a server that exposes two tools: `get-alerts` and `get-forecast`. Th -Servers can connect to any client. We've chosen Claude desktop here for simplicity, but we also have guides on [building your own client](/tutorials/building-a-client). +Servers can connect to any client. We've chosen Claude for Desktop here for simplicity, but we also have guides on [building your own client](/tutorials/building-a-client) as well as a [list of other clients here](/clients). @@ -34,11 +34,13 @@ MCP servers can provide three main types of capabilities: 2. **Tools**: Functions that can be called by the LLM (with user approval) 3. **Prompts**: Pre-written templates that help users accomplish specific tasks -This tutorial focuses on tools, but we have intermediate tutorials if you'd like to learn more about Resources and Prompts. +This tutorial will primarily focus on tools. +Let's get started with building our weather server! [You can find the complete code for what we'll be building here.](https://github.com/modelcontextprotocol/quickstart-resources/tree/main/weather-server-python) + ### Prerequisite knowledge This quickstart assumes you have familiarity with: @@ -143,7 +145,7 @@ __all__ = ['main', 'server'] Now let's dive into building your server. -## Building your server +## Building your server ### Importing packages @@ -401,9 +403,10 @@ Let's now test your server from an existing MCP host, Claude for Desktop. Claude for Desktop is not yet available on Linux. Linux users can proceed to the [Building a client](/tutorials/building-a-client) tutorial to build an MCP client that connects to the server we just built. -First, make sure you have Claude for Desktop installed. [You can install the latest version here.](https://claude.ai/download) +First, make sure you have Claude for Desktop installed. [You can install the latest version +here.](https://claude.ai/download) If you already have Claude for Desktop, **make sure it's updated to the latest version.** -Next, open your Claude for Desktop App configuration at `~/Library/Application Support/Claude/claude_desktop_config.json` in a text editor. +We'll need to configure Claude for Desktop for whichever MCP servers you want to use. To do this, open your Claude for Desktop App configuration at `~/Library/Application Support/Claude/claude_desktop_config.json` in a text editor. Make sure to create the file if it doesn't exist. For example, if you have [VS Code](https://code.visualstudio.com/) installed: @@ -420,8 +423,9 @@ code $env:AppData\Claude\claude_desktop_config.json +You'll then add your servers in the `mcpServers` key. The MCP UI elements will only show up in Claude for Desktop if at least one server is properly configured. -Add this configuration (replace the parent folder path): +In this case, we'll add our single weather server like so: @@ -460,13 +464,20 @@ Add this configuration (replace the parent folder path): + +Make sure you pass in the absolute path to your server. + + This tells Claude for Desktop: 1. There's an MCP server named "weather" -2. Launch it by running `uv --directory /ABSOLUTE/PATH/TO/PARENT/FOLDER/weather run weather` +2. To launch it by running `uv --directory /ABSOLUTE/PATH/TO/PARENT/FOLDER/weather run weather` Save the file, and restart **Claude for Desktop**. + +Let's get started with building our weather server! [You can find the complete code for what we'll be building here.](https://github.com/modelcontextprotocol/quickstart-resources/tree/main/weather-server-typescript) + ### Prerequisite knowledge This quickstart assumes you have familiarity with: @@ -911,12 +922,13 @@ Let's now test your server from an existing MCP host, Claude for Desktop. ## Testing your server with Claude for Desktop -Unfortunately, Claude for Desktop is not yet available on Linux. Linux users can proceed to the [Building a client](/tutorials/building-a-client) tutorial for a workaround. +Claude for Desktop is not yet available on Linux. Linux users can proceed to the [Building a client](/tutorials/building-a-client) tutorial to build an MCP client that connects to the server we just built. -First, make sure you have Claude for Desktop installed. [You can install the latest version here.](https://claude.ai/download) +First, make sure you have Claude for Desktop installed. [You can install the latest version +here.](https://claude.ai/download) If you already have Claude for Desktop, **make sure it's updated to the latest version.** -Next, open your Claude for Desktop App configuration at `~/Library/Application Support/Claude/claude_desktop_config.json` in a text editor. +We'll need to configure Claude for Desktop for whichever MCP servers you want to use. To do this, open your Claude for Desktop App configuration at `~/Library/Application Support/Claude/claude_desktop_config.json` in a text editor. Make sure to create the file if it doesn't exist. For example, if you have [VS Code](https://code.visualstudio.com/) installed: @@ -933,8 +945,9 @@ code $env:AppData\Claude\claude_desktop_config.json +You'll then add your servers in the `mcpServers` key. The MCP UI elements will only show up in Claude for Desktop if at least one server is properly configured. -Add this configuration (replace the parent folder path): +In this case, we'll add our single weather server like so: @@ -981,7 +994,7 @@ Save the file, and restart **Claude for Desktop**. ### Test with commands -First, make sure Claude for Desktop is picking up the two tools we've exposed in our `weather` server. You can do this by looking for the hammer icon: +Let's make sure Claude for Desktop is picking up the two tools we've exposed in our `weather` server. You can do this by looking for the hammer icon: @@ -993,9 +1006,9 @@ After clicking on the hammer icon, you should see two tools listed: -If your server isn't being picked up by Claude for Desktop, proceed to the [Troubleshooting](#troubleshooting) section for debugging advice. +If your server isn't being picked up by Claude for Desktop, proceed to the [Troubleshooting](#troubleshooting) section for debugging tips. -You can now test your server by running the following commands in Claude for Desktop: +If the hammer icon has shown up, you can now test your server by running the following commands in Claude for Desktop: - What's the weather in Sacramento? - What are the active weather alerts in Texas? diff --git a/tutorials/building-a-client.mdx b/tutorials/building-a-client.mdx index 0039c17..a626fe0 100644 --- a/tutorials/building-a-client.mdx +++ b/tutorials/building-a-client.mdx @@ -8,7 +8,7 @@ In this tutorial, you'll learn how to build a LLM-powered chatbot client that co -You can find the complete code for this tutorial [here.](https://gist.github.com/zckly/f3f28ea731e096e53b39b47bf0a2d4b1) +[You can find the complete code for this tutorial here.](https://github.com/modelcontextprotocol/quickstart-resources/tree/main/mcp-client) ## System Requirements