Stape
Search
Try for free

How to set up the Stape MCP server

Uliana Lesiv

Uliana Lesiv

Author
Published
May 2, 2025

Model Context Protocol (MCP) Server can significantly simplify the management of your sGTM containers on Stape without requiring coding skills. You just type your task to the AI assistant, and the MCP server handles the request.

In this article, we will define the MCP Server and show how to set up the Stape MCP Server in a few simple steps.

What is the Model Context Protocol Server?

The Model Context Protocol (MCP) is an open standard that allows AI models to interact with APIs, databases, and other services in a consistent and scalable manner.

Independent of the platform (Stape or any other), the Model Context Protocol (MCP) Server is the intermediary, offering a unified interface to access external systems, tools, and data sources. MCP Server standardizes access to tools, resources, and prompts, ensuring they are usable by any AI application or agent that supports the protocol.

What are the benefits of Stape MCP Server?

The key benefit of implementing Stape MCP Server for users is the simplified management of their server GTM containers on Stape. It allows users to list, create, and delete containers and container zones without writing API requests; instead, the request is written in “human language” in the AI app.

Along with the MCP Server for Google Tag Manager, you can configure a server container on GTM and Stape in no time.

Stape MCP Server configuration

1. Download the Stape MCP Server from GitHub and unzip it.

Download Stape MCP Server from GitHub
Download Stape MCP Server from GitHub

2. Open the folder you downloaded from GitHub in Terminal.

3. In Terminal, run the commands: npm install && npm build

So, to install dependencies and build the library.

Run commands
Run commands

4. Open your AI app and add the config. For this purpose, we use the Claude app.

Open the Claude desktop app → Settings → Developer tab → Edit Config → open desktop JSON file called “claude_desktop_config” → paste the code below.

To configure only the Stape MCP Server, paste this code:

{ "mcpServers": { "stape-mcp-server": { "command": "node", "args": [ "/your_path_to_file/stape-mcp-server/dist/index.js" ], "env": { "STAPE_AUTH_KEY": "skey" } } } }

If you would like to configure the MCP Server for GTM, please follow steps 1-8 from our guide for GTM and paste this code:

{ "mcpServers": { "google-tag-manager-mcp-server": { "command": "node", "args": ["/your_path_to_file/mcp-google-tag-manager/dist/index.js"], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "mcp-google-tag-manager/keys/gtm-mcp.json" } }, "stape-mcp-server": { "command": "node", "args": ["/your_path_to_file/stape-mcp-server/dist/index.js"], "env": { "STAPE_AUTH_KEY": "skey" } } } }

5. Find the Stape Account API Key.

Go to your Stape account → Settings section of your account → Account API key → copy the key. Paste the key in "skey" in the code from the previous step.

Account API key
Account API key

6. Save the file “claude_desktop_config” → close the Claude app → reopen it.

7. You should see the MCP Servers list in the Claude app's Developer tab.

Developer tab in Claude app
Developer tab in Claude app

You're all set! You can now begin typing your request in the Claude app.

To sum up

The Stape MCP Server offers a user-friendly way to manage your sGTM containers on Stape through natural language commands. There is no need for manual API interactions or coding expertise. The setup process is straightforward, and once configured, your AI assistant can handle complex account tasks. You can unlock more efficient workflows and optimize task performance with just a few steps.

author

Uliana Lesiv

Author

Uliana is a Content Manager at Stape, specializing in analytics and integration setups. She breaks down complex tracking concepts into clear insights, helping businesses optimize data collection.

author

Comments

Try Stape for all things server-sideright now!