MCP server tutorial: deploy your first MCP server
A step-by-step MCP server tutorial: install the gxmesh CLI, build an MCP server with one tool in Go, TypeScript or Python, deploy it and connect a client.

In this post
- Install the gxmesh CLI on macOS, Linux or Windows
- Start a project and add a tool in Go, TypeScript or Python
- Push it and connect an MCP client
This tutorial builds an MCP server with one tool and deploys it in about ten minutes. Glxymesh hosts the server, so you don't run one yourself. A tool is a tool.yml that describes it, plus one run function in Go, TypeScript or Python if it needs code. You push the project; the platform builds it, runs its tests and serves it from one authenticated endpoint.
Install the CLI#
The gxmesh CLI starts projects, runs them on your machine and deploys them. Pick your system:
$ curl -fsSL https://platform.glxymesh.com/install.sh | bashPS> irm https://platform.glxymesh.com/install.ps1 | iexSign in and create a project#
Sign in, choose your organization, then create the project that will hold your tools. A project is one MCP server, with its own tools and secrets.
$ gxmesh login $ gxmesh org use $ gxmesh project create helpdesk
Start the project and add a tool#
Make a folder for the project, pick its language, and add a tool. You get a tool.yml and a code file to edit in any editor.
$ mkdir acme-helpdesk && cd acme-helpdesk $ gxmesh init --lang node --project helpdesk $ gxmesh new list-open-issues
Deploy#
gxmesh dev serves the project on your machine as an MCP server. When it works, push it: the platform builds it, runs the tests in each tool.yml, and puts it live only if they pass.
$ gxmesh push
Connect a client#
gxmesh connect prints your project's address and the command to add it to Claude Code, Cursor and other clients. The console's Connect page shows the same.

| Command | What it does |
|---|---|
| gxmesh init | Starts a project in this folder |
| gxmesh new | Adds a tool |
| gxmesh dev | Serves the project on your machine |
| gxmesh push | Builds, tests and deploys it |
| gxmesh connect | Shows how to connect a client |
How do I check that my hosted MCP server works?#
- Confirm the push completed and that the tool is enabled in the intended project.
- Run
gxmesh connectand use the exact project address it prints. - Authorize a compatible MCP client and check that the tool appears in its tool list.
- Make a request that should call the tool, then check its outcome and timing in the console's invocation history.
A connection alone does not prove the external API call succeeded. Inspect the result and invocation history, especially when the tool needs a secret or permission to reach an external host.
Can I create an MCP tool without writing code?#
Yes, when the tool is one HTTP request, use gxmesh new <name> --kind http and describe the request in YAML. For a tool that needs code, use Go, TypeScript or Python. You can also describe a tool in the console's Builder, review the generated draft and tests, approve its required hosts and keys, then publish it. See the tool creation walkthrough.
Explore MCP guides by task: creation, hosting, connections and security.


