Set up and start your generated MCP server locally
For each request you add to your Model Context Protocol (MCP) server, Postman generates a tool for you. Once you set up your server and start it, you can use Postman to interact with it. The server supports the MCP standard input and output (STDIO) and streamable HTTP transport layers.
Set up your MCP server
To set up your MCP server, do the following:
-
If you haven’t already, install Node.js 18 or later and generate and download your MCP server.
-
Unzip the file you downloaded.
-
(Optional) Rename the unzipped folder and move it to another directory.
-
Open your terminal and change to your MCP server’s root directory:
-
Install your project’s dependencies:
-
List your tools:
This command lists your tool’s information, including their file names. You may need to edit these files in the next steps. You can find these files in the
toolsdirectory. -
For each tool, open its tool file, and verify the
baseUrlvalue is correct. -
If you need to store sensitive data, such as your API keys or tokens, open the
.envfile and save them there. -
If your tool needs authentication, for each such tool, open its tool file and use
tokento implement authentication. For example, if the original request passes a token in the headers, addtokentoheaders.
To learn more, see your project’s README.md file.
Start your MCP server
To start your MCP server, do the following:
-
Open your terminal and change to your server’s root directory:
-
Start your server:
-
To start your standard input and output server, run the following command:
-
To start your streamable HTTP server, run the following command:
-
-
When you’re ready to stop your server, press Control+C or Ctrl+C.
You’re ready to use Postman to interact with your MCP server.