Credentials
Copy page
The credentials are a mechanism for securely storing and retrieving credentials for mcp servers.
Securely store and retrieve authentication credentials for MCP servers.
Step 1: Add a credential
Make sure your Visual Builder is running (if you haven't set it up yet, see Quick Start). Navigate to the Credentials tab in the left sidebar and click "New credential".
Select "Bearer Authentication" and click "Create Credential". You'll then be prompted to enter your API key for the MCP server.
Step 2: Retrieve the credential reference id from the URLs
Once you've created a credential, you can retrieve the credential reference id from the URL. The credential reference id is the last part of the URL after credentials/ on the page of the credential you just created.
Step 3: Reference the credential when creating an MCP tool
There are two ways to reference credentials in your MCP tools:
Option 1: Reference by Credential ID (Recommended)
When you create a credential through the UI, you get a credential reference ID that you can use directly:
Option 2: Define Environment-Based Credentials
For development workflows, you can define credentials that reference environment variables:
Best Practices
Production Deployments
- Use credential IDs: Always use
credentialReferenceIdwith credentials created through the UI - Secure storage: Credentials are encrypted and managed centrally
- Team collaboration: Credentials can be shared across team members
Development Workflows
- Environment credentials: Use
credentialReferencewith environment-based credentials - Local development: Define credentials in your
environments/*.env.tsfiles - CI/CD integration: Environment variables can be managed by your deployment pipeline
Environment Integration
You can also define credentials in your environment files:
Then reference them in your tools: