Better AuthSAFE
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://smithery.ai/server/@nahmanmate/better-auth-mcp-server)
MCP Server for Authentication Management
Enterprise-grade authentication solution providing:
- 🔐 Secure credential management with AES-256 encryption
- ⚙️ Multi-protocol auth (OAuth2, SAML, LDAP)
- 🛡️ Real-time threat detection and prevention
Features
Core Tools
analyze_project- Analyze project structure for auth setup recommendationssetup_better_auth- Configure auth providers with project ID and API keyanalyze_current_auth- Detect existing auth.js/next-auth implementationsgenerate_migration_plan- Create step-by-step migration path
Testing & Security
test_auth_flows- Validate login/register/reset/2fa flowstest_security- Run OWASP-aligned security checksanalyze_logs- Review auth system logs for issuesmonitor_auth_flows- Real-time authentication monitoring
Available Resources
better-auth://config- Current Better-Auth configuration settingsbetter-auth://logs- Authentication system logs
Development
Clone and install:
git clone https://github.com/better-auth-mcp-server/better-auth-mcp-server.git cd better-auth-mcp-server npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Configuration
Environment Variables
# Required BETTER_AUTH_PROJECT_ID=your-project-id BETTER_AUTH_API_KEY=your-api-key # Optional BETTER_AUTH_ENV=development|staging|production LOG_LEVEL=info|debug|error
Security Best Practices
- API Key Management
- Store API keys in environment variables
- Rotate keys regularly
- Use different keys per environment
- Acc
25e97df017a3OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add better-auth-mcp-server -- npx -y [email protected]
{
"mcpServers": {
"better-auth-mcp-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (8)
5 read · 3 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
analyze_current_auth | read | Detect and analyze existing auth.js/next-auth implementation |
analyze_logs | read | Analyze Better-Auth logs for issues |
analyze_project | read | Analyze project structure and dependencies to recommend Better-Auth setup approach |
generate_migration_plan | write | Create step-by-step migration plan from existing auth to Better-Auth |
monitor_auth_flows | read | Real-time monitoring of authentication processes |
setup_better_auth | write | Install and configure Better-Auth in the project |
test_auth_flows | read | Test authentication workflows |
test_security | write | Run security tests on Better-Auth setup |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (1)
axios, better-auth, winston, @types/node, typescript
Gates applied: no_behavioural_pass.
25e97df017a3full audit observations/trust-audit/mcp-server/nahmanmate__better-auth.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 25e97df017a3 | SAFE | B | 89 | first audit |
Questions
What tools does Better Auth expose?
8 in total: 5 read-only, 3 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Better Auth safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Better Auth need?
No credential environment variables were found in its source, so it appears to need none.
How does Better Auth run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as better-auth-mcp-server at 0.1.0.
How current is this page?
The grade is for one exact copy of the source (25e97df017a3), read on 2026-10-08. The repository is watched and re-audited when it changes.