MCP Setup Guide
This guide walks you through setting up the Templated MCP server with different AI assistants.
Prerequisites
Section titled “Prerequisites”Before you begin, make sure you have:
- A Templated account — Sign up for free
- Your API key — Find it in your dashboard
For local server mode, you’ll also need:
- Node.js 18 or higher installed
Claude Desktop
Section titled “Claude Desktop”Claude Desktop supports both remote and local MCP servers.
Option 1: Local Server (Recommended for Claude Desktop)
Section titled “Option 1: Local Server (Recommended for Claude Desktop)”Locate your config file
The Claude Desktop configuration file is located at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
Edit the configuration
Open the file and add the Templated MCP server:
claude_desktop_config.json {"mcpServers": {"templated": {"command": "npx","args": ["mcp-server-templated"],"env": {"TEMPLATED_API_KEY": "YOUR_API_KEY"}}}}Replace
YOUR_API_KEYwith your actual API key.Restart Claude Desktop
Completely quit and reopen Claude Desktop for the changes to take effect.
Verify the connection
Look for a tools icon (hammer) in the chat input area. Click it to see available Templated tools.
Option 2: Remote Server
Section titled “Option 2: Remote Server”Locate your config file
Same location as above.
Edit the configuration
claude_desktop_config.json {"mcpServers": {"templated": {"url": "https://mcp.templated.io/mcp?apiKey=YOUR_API_KEY"}}}Restart Claude Desktop
Completely quit and reopen Claude Desktop.
Cursor IDE
Section titled “Cursor IDE”Cursor supports MCP servers through its configuration file.
Remote Server (Recommended)
Section titled “Remote Server (Recommended)”Locate your config file
The Cursor MCP configuration file is located at:
- macOS/Linux:
~/.cursor/mcp.json - Windows:
%USERPROFILE%\.cursor\mcp.json
- macOS/Linux:
Create or edit the configuration
mcp.json {"mcpServers": {"templated": {"url": "https://mcp.templated.io/mcp?apiKey=YOUR_API_KEY"}}}Restart Cursor
Close and reopen Cursor for the changes to take effect.
Start using Templated
In the Composer or Chat panel, you can now ask Cursor to use Templated tools.
Local Server
Section titled “Local Server”Locate your config file
Same location as above.
Edit the configuration
mcp.json {"mcpServers": {"templated": {"command": "npx","args": ["mcp-server-templated"],"env": {"TEMPLATED_API_KEY": "YOUR_API_KEY"}}}}Restart Cursor
ChatGPT
Section titled “ChatGPT”ChatGPT supports MCP servers through Connected Apps in the settings.
Open ChatGPT Settings
Go to Settings → Connected Apps → Add MCP Server
Enter the server URL
https://mcp.templated.io/mcp?apiKey=YOUR_API_KEYReplace
YOUR_API_KEYwith your actual API key.Set authentication to “No Auth”
Since the API key is included in the URL, select “No Auth” for authentication type.
Click Create
ChatGPT will verify the connection and add Templated to your connected apps.
Start using Templated
In any conversation, you can now ask ChatGPT to use Templated tools to generate images, manage templates, and more.
Claude.ai (Web)
Section titled “Claude.ai (Web)”Claude.ai web interface also supports MCP servers.
Go to Settings
Click on your profile icon and navigate to Settings → Developer → MCP Servers
Add a new server
Click Add Server and enter:
- Name: Templated
- URL:
https://mcp.templated.io/mcp?apiKey=YOUR_API_KEY
Save and start chatting
The Templated tools will now be available in your conversations.
Scoping Access
Section titled “Scoping Access”When building multi-tenant applications (e.g. a chat interface where each customer edits their own templates), you can scope the MCP server so that each session only has access to a specific subset of resources. This is enforced at the server level, making it immune to prompt injection.
You can scope by folder ID, external ID, or both.
External ID Scoping
Section titled “External ID Scoping”If you already use externalId to link templates to your own customers (e.g. via the Embedded Editor), you can use the same identifier to scope MCP access.
When set, the MCP server will:
- Only list templates and renders matching that external ID
- Automatically assign the external ID to new templates
- Reject any operation on a template that doesn’t match
Add the externalId query parameter to the URL:
https://mcp.templated.io/mcp?apiKey=YOUR_API_KEY&externalId=CUSTOMER_123Set the TEMPLATED_EXTERNAL_ID environment variable:
{ "mcpServers": { "templated": { "command": "npx", "args": ["mcp-server-templated"], "env": { "TEMPLATED_API_KEY": "YOUR_API_KEY", "TEMPLATED_EXTERNAL_ID": "CUSTOMER_123" } } }}Folder ID Scoping
Section titled “Folder ID Scoping”You can also restrict access to a specific folder. When set, the MCP server will:
- Only list templates and renders from that folder
- Automatically move new templates into the folder
- Reject any operation on a template outside the folder
- Hide folder management tools (since the folder is fixed)
Add the folderId query parameter to the URL:
https://mcp.templated.io/mcp?apiKey=YOUR_API_KEY&folderId=FOLDER_IDSet the TEMPLATED_FOLDER_ID environment variable:
{ "mcpServers": { "templated": { "command": "npx", "args": ["mcp-server-templated"], "env": { "TEMPLATED_API_KEY": "YOUR_API_KEY", "TEMPLATED_FOLDER_ID": "FOLDER_ID" } } }}Combining Both
Section titled “Combining Both”You can use both scoping parameters together for stricter isolation. For example, to restrict access to a specific folder AND external ID:
https://mcp.templated.io/mcp?apiKey=YOUR_API_KEY&folderId=FOLDER_ID&externalId=CUSTOMER_123Troubleshooting
Section titled “Troubleshooting”Server not connecting
Section titled “Server not connecting”Tools not appearing
Section titled “Tools not appearing”If the tools don’t appear after configuration:
- Completely restart the AI assistant (not just close the window)
- Check the config file location — it must be in the exact path specified
- Verify JSON syntax — use a JSON validator to check for errors
- Check for existing configs — you may need to merge with existing
mcpServers
Local server errors
Section titled “Local server errors”If using local server mode:
# Verify Node.js versionnode --version # Should be 18.0.0 or higher
# Test the MCP server directlyTEMPLATED_API_KEY=your_key npx mcp-server-templatedGetting help
Section titled “Getting help”If you’re still having issues:
- Check our GitHub Issues
- Contact us at support@templated.io