This guide will walk you through the steps to configure your Opsera MCP (Model Context Protocol) server access in Cursor IDE.
- Access to Opsera Portal with valid login
- Navigate to your Opsera portal
- Log in with your credentials
- Once logged in, you will see the Opsera home page
- Click on your profile icon in the top-right corner
- From the dropdown menu, select "Profile"
- You will land on the "My Profile" page
- Click on the "Access Tokens" tab at the top of the page
On the "Access Tokens" page, you will see the "Generate Personal Access Token" section.
Fill in the following fields:
- Enter a descriptive name for your token (e.g., "MCP Integration")
- Spaces, letters, numbers, dashes, colons, underscores, and periods are allowed
- Select the expiration period from the dropdown (default: 1 Month)
- Options typically include: 1 Month, 3 Months, 6 Months, 1 Year
- Select "API Access" (full read/write access)
- This grants complete read/write access to the API, including all Pipeline and Tool Registry routes based on individual resource access rules
Click the "Create" button to create the token.
IMPORTANT: Once generated, copy the token immediately!
- The token will be displayed only once
- It will be in JWT format (starting with "eyJ...")
- Store it securely as you won't be able to see it again
-
Locate your Cursor MCP configuration file:
- macOS/Linux:
~/.cursor/mcp.json - Windows:
%USERPROFILE%\.cursor\mcp.json
- macOS/Linux:
-
Open the
mcp.jsonfile in a text editor -
Add the Opsera MCP server configuration with your API key:
{
"mcpServers": {
"opsera-ai-agent": {
"url": "https://agent.opsera.io/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN_HERE"
}
}
}
}-
Replace
"YOUR_API_TOKEN_HERE"with the actual API token you copied in Step 3 -
Save the
mcp.jsonfile
- Save the
mcp.jsonfile - The Opsera MCP server should now be available in your MCP tools list
- You can verify the connection by checking if Opsera-related tools and functions appear in your available MCP functions
Complete example of mcp.json file:
{
"mcpServers": {
"opsera-ai-agent": {
"url": "https://agent.opsera.io/mcp",
"headers": {
"Authorization": "Bearer ey..."
}
}
}
}Note: The token shown above is abbreviated. Your actual token will be much longer.
- Verify your API token is correct and not expired
- Check if the token has the required scopes/permissions (should be "API Access")
- Generate a new token if the current one has expired
- Ensure there are no extra spaces before or after the token
- Verify the URL is correct for your Opsera instance
- Check your network connection and internet connectivity
- Confirm the agent URL is accessible from your network
- Completely restart Cursor IDE (close all windows)
- Check that the
mcp.jsonsyntax is valid JSON format - Verify the file is saved in the correct location
- Check file permissions to ensure the file is readable
- Navigate back to the Personal Access Tokens page
- Generate a new token with appropriate expiration date
- Update the
mcp.jsonfile with the new token - Restart Cursor IDE
Once successfully configured, you will have access to various Opsera operations through the MCP interface, including:
- Pipeline operations
For additional help or questions:
Email: [email protected]

