Beagle Security MCP Server
Enables integration with Beagle Security API for managing security testing projects, applications, domain verification, and automated penetration tests. Provides 18 tools for creating, monitoring, and retrieving results from security assessments.
README
Beagle Security MCP Server
This is a Model Context Protocol (MCP) server that provides integration with the Beagle Security API. It allows you to manage projects, applications, and automated security testing through the Beagle Security platform.
Features
- Project Management: Create, modify, list, and delete projects
- Application Management: Create, get, modify, list, and delete applications
- Domain Verification: Get verification signatures and verify domain ownership with multiple signature types
- Security Testing: Start, monitor, stop, and retrieve results from automated penetration tests
- Team Support: Work with team projects and tests
Installation
Option 1: Docker (Recommended)
- Clone this repository
- Set up your environment variables:
cp .env.example .env # Edit .env with your API token - Build and run with Docker:
npm run docker:build npm run docker:run
Or use Docker Compose:
docker-compose up -d
Option 2: Local Installation
- Clone this repository
- Install dependencies:
npm install - Build the project:
npm run build
Configuration
Environment Variables
Set your Beagle Security API token as an environment variable:
export BEAGLE_SECURITY_API_TOKEN=your_api_token_here
You can obtain an API token from your Beagle Security account settings (Profile → Personal access token).
MCP Configuration
Docker Configuration
Add the server to your MCP configuration file:
{
"mcpServers": {
"beagle-security": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--env", "BEAGLE_SECURITY_API_TOKEN=your_api_token_here",
"--env", "NODE_ENV=production",
"mcp/beagle-security-mcp-server"
]
}
}
}
Local Configuration
For local installations:
{
"mcpServers": {
"beagle-security": {
"command": "node",
"args": ["path/to/beagle-security-mcp-server/build/index.js"],
"env": {
"BEAGLE_SECURITY_API_TOKEN": "your_api_token_here"
}
}
}
}
Available Tools (18 Total)
Project Management (4 tools)
beagle_create_project: Create a new projectbeagle_modify_project: Modify an existing projectbeagle_list_projects: List all projects and applicationsbeagle_delete_project: Delete a project
Application Management (5 tools)
beagle_create_application: Create a new application in a projectbeagle_get_application: Get application details by tokenbeagle_modify_application: Modify an existing applicationbeagle_list_applications: List all applications under a projectbeagle_delete_application: Delete an application
Domain Verification (2 tools)
beagle_get_domain_signature: Get domain verification signaturebeagle_verify_domain: Complete domain verification with FILE, DNS, or API signature types
Security Testing (7 tools)
beagle_start_test: Start an automated penetration testbeagle_get_test_status: Get the status of a running testbeagle_stop_test: Stop a running testbeagle_get_test_result: Get detailed test results in JSON formatbeagle_list_test_sessions: List all test sessions for an applicationbeagle_list_running_tests: List all running tests for user or team (supports team filtering)
Testing
Comprehensive Test Suite
Run all tests to validate functionality:
# Run complete test suite (recommended)
npm run test:all
# Test individual components
npm run test:tools # Test all 18 MCP tools
npm run test:integration # Integration & API tests
npm run test # Unit tests
# Test with real API (requires token)
BEAGLE_SECURITY_API_TOKEN=your_token npm run test:all
Test Features
- Tool Validation: Tests all 18 tools with proper parameters
- API Integration: Live API testing when credentials provided
- Error Handling: Validates error scenarios and edge cases
- Cross-Platform: Works on Linux, macOS, and Windows
- Docker Testing: Validates container functionality
For detailed testing information, see TESTING.md.
Development
Docker Development
# Build Docker image
npm run docker:build
# Run with Docker
npm run docker:run
# Use Docker Compose
npm run docker:compose:up
# View logs
npm run docker:compose:logs
# Stop services
npm run docker:compose:down
Local Development
# Running in Development Mode
npm run dev
# Building
npm run build
# Starting the Server
npm start
API Reference
This server implements the Beagle Security API v2.0. For detailed API documentation, visit: https://beaglesecurity.com/developer/apidoc
API Compatibility
This server implements Beagle Security API v2.0 with:
- ✅ All endpoints verified against official documentation
- ✅ Correct parameter naming (camelCase format)
- ✅ Proper error handling for all API response codes
- ✅ Latest API features including domain verification types
Error Handling
The server includes comprehensive error handling for:
- Authentication errors (invalid API tokens)
- HTTP errors (network issues, server errors)
- Validation errors (missing required parameters)
- API-specific errors (returned by Beagle Security)
- Cross-platform compatibility issues
Security Considerations
- Keep your API token secure and never commit it to version control
- Use environment variables or secure configuration management
- Ensure proper scopes are set when generating API tokens
- Monitor API usage to detect unauthorized access
Troubleshooting
Common Issues
- Server won't start: Run
npm run buildto check for build errors - API calls failing: Verify your
BEAGLE_SECURITY_API_TOKENis valid - Docker issues: Ensure Docker is installed and running
- macOS timeout errors: Install with
brew install coreutilsor tests will auto-fallback
Getting Help
- Run the test suite:
npm run test:all - Check the logs in development mode:
NODE_ENV=development npm start - Review TESTING.md for detailed troubleshooting
API Reference
Complete API documentation: https://beaglesecurity.com/developer/apidoc
License
MIT License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。