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: Connectors Directory (Recommended)
Section titled “Option 1: Connectors Directory (Recommended)”Templated is listed in the Claude connectors directory, so there is nothing to install or paste.
Open the Templated listing
Go to claude.ai/directory/templatedio. You can also find it in Claude Desktop under Settings → Connectors, or on Claude.ai under Customize → Connectors, by searching for Templated.
Connect
Click Connect (on Team and Enterprise plans, Connect for your team).
Sign in to Templated
When prompted, sign in to your Templated account to authorize the connection.
Verify the connection
Look for a tools icon (hammer) in the chat input area. Click it to see available Templated tools.
Option 2: Local Server
Section titled “Option 2: Local Server”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.
Cursor IDE
Section titled “Cursor IDE”The fastest way is the install button, which opens Cursor with the server pre-configured:
Then click Login next to the server and sign in to your Templated account.
Manual setup
Section titled “Manual setup”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"}}}Restart Cursor
Close and reopen Cursor for the changes to take effect.
Sign in when prompted
Cursor shows a Login button on first use. Click it and sign in to your Templated account to authorize the connection.
Start using Templated
In the Composer or Chat panel, you can now ask Cursor to use Templated tools.
Alternative: API key in the URL
Section titled “Alternative: API key in the URL”For automations, or if you prefer not to use OAuth, include your API key directly in the URL instead:
{ "mcpServers": { "templated": { "url": "https://mcp.templated.io/mcp?apiKey=YOUR_API_KEY" } }}Replace YOUR_API_KEY with your actual API key.
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/mcpSet authentication to OAuth
Select OAuth for authentication type. ChatGPT will prompt you to sign in to your Templated account to authorize the connection.
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.
Alternative: API key in the URL
Section titled “Alternative: API key in the URL”For automations, or if you prefer not to use OAuth, include your API key directly in the URL and set authentication to “No Auth”:
https://mcp.templated.io/mcp?apiKey=YOUR_API_KEYReplace YOUR_API_KEY with your actual API key.
Claude.ai (Web and Mobile)
Section titled “Claude.ai (Web and Mobile)”Claude.ai uses the same connectors directory as Claude Desktop.
Open the Templated listing
Go to claude.ai/directory/templatedio, or open Customize → Connectors in the sidebar and search for Templated.
Connect
Click Connect (on Team and Enterprise plans, Connect for your team).
Sign in to Templated
When prompted, sign in to your Templated account to authorize the connection.
Start chatting
The Templated tools will now be available in your conversations, including on the mobile apps and in Cowork.
Claude Code
Section titled “Claude Code”Claude Code supports the Templated MCP server through the CLI.
Add the server
Run this command in your terminal:
Terminal window claude mcp add --transport http templated https://mcp.templated.io/mcpAuthenticate
Inside Claude Code, run:
/mcpand follow the prompts to sign in to your Templated account.
Start using Templated
Once connected, you can ask Claude Code to use Templated tools.
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