# Security Features
The MCP Second Brain Server implements multiple security measures to protect your vault and data integrity:
- **Path Traversal Protection:** All file paths are validated using `path.relative()` to ensure they remain within the vault directory.
- **File Size Limits:** Files exceeding `maxFileSize` (default 10MB) are skipped during indexing to prevent memory issues.
- **Input Validation:** All enum parameters (type, status, category) are strictly validated.
- **Date Validation:** Date strings are validated for format and actual date validity (e.g., rejects Feb 30).
- **Error Tracking:** Failed file reads are logged without exposing sensitive system paths.
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/CoMfUcIoS/obsidian-mcp-sb'
If you have feedback or need assistance with the MCP directory API, please join our Discord server