Security & Access Control
Secure your MCP server with auth tokens, per-token tool filters, IP allowlisting, and CORS configuration.
π Security Layers
Layer
Mechanism
Scope
π Authentication
Shape 1: Simple String
{
"modules": {
"bxmcp": {
"settings": {
"authToken": "my-secret-token"
}
}
}
}Shape 2: Array of Structs (Inline Tools)
Field
Default
Description
Shape 3: Array of Structs (Profile Reference) β Recommended
Field
Default
Description
Filtering Rules (Applied in Order)
Glob Pattern Reference
Pattern
Matches
Disabling Authentication
π Security Profiles
Built-in Profiles
Profile
Included Tools
Description
Defining Custom Profiles
Field
Default
Description
Using Profiles in Auth Tokens
π IP Allowlisting
Value
Behavior
π CORS Configuration
Value
Behavior
π‘οΈ Tool Blacklisting
π Security Best Practices
Production Deployment Checklist
Example: Read-Only Monitoring Token (Profile-Based β Recommended)
Example: Read-Only Monitoring Token (Inline)
Example: Ops Token Without Destructive Operations (Profile-Based β Recommended)
Example: Ops Token Without Destructive Operations (Inline)
π Next Steps
Last updated
Was this helpful?
