Mallory MCP Server
Access real-time cyber and threat intelligence, including details on vulnerabilities, threat actors, and malware.
Mallory MCP Server
Mallory provides a robust source of cyber and threat intelligence. Use this MCP Server to enable your agents with real-time cyber threat intelligence and detailed information about vulnerabilities, threat actors, malware, techniques and other cyber-relevant entities and content.
๐ Prerequisites
- Python 3.13 or higher
- uv for dependency management (recommended)
๐ Quick Start
Installation
Clone the repository:
git clone https://github.com/malloryai/mallory-mcp-server.git
cd mallory-mcp-server
Set up a virtual environment and install dependencies:
# Using uv (recommended)
uv venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e .
# Or using pip
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -e .
Install Development Dependencies
For development work, install the optional dependencies:
# Using uv
uv pip install -e ".[lint,tools]"
# Or using pip
pip install -e ".[lint,tools]"
Set Up Pre-commit Hooks
This project uses pre-commit hooks to ensure code quality. Install them with:
pre-commit install
./scripts/install-commit-hook.sh
โ๏ธ Configuration
Create a .env file in the project root with the following variables:
APP_ENV=local
MALLORY_API_KEY=your_api_key_here
๐โโ๏ธ Running the Server
Direct Execution
python -m malloryai.mcp.app
or
uv run malloryai/mcp/app.py
Via the Claude Desktop Configuration
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"MalloryAI": {
"command": "/path/to/uv",
"args": [
"run",
"--python",
"/path/to/mcp-server/.venv/bin/python",
"/path/to/mcp-server/malloryai/mcp/app.py"
],
"env": {
"MALLORY_API_KEY": "your_api_key_here"
}
}
}
}
๐ฆ Project Structure
.
โโโ README.md
โโโ app.py # Main application entry point
โโโ malloryai/ # Main package
โ โโโ __init__.py
โ โโโ mcp/ # MCP subpackage
โ โโโ __init__.py
โ โโโ config/ # Configuration modules
โ โโโ server/ # Server implementation
โ โโโ tools/ # Tool implementations
โ โโโ utils/ # Utility functions
โโโ pyproject.toml # Project metadata and dependencies
โโโ scripts/ # Utility scripts
โ โโโ install-commit-hook.sh
๐งช Development
Code Style
This project uses:
Format your code with:
black .
isort .
flake8
Commit Message Format
This project follows the conventional commit format. Each commit message should follow this pattern:
<type>[(scope)]: <description>
Where type is one of:
featorfeature: New featurefix,bugfix, orhotfix: Bug fixeschore: Regular maintenance tasksrefactor: Code changes that neither fix bugs nor add featuresdocs: Documentation only changesstyle: Changes that don't affect the meaning of the codetest: Adding or correcting testsperf: Performance improvementsci: Changes to CI configurationbuild: Changes to build system or dependenciesrevert: Reverting previous commits
Example: feat(server): add new authentication method
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Related Servers
MySQL MCP
A secure MCP service for accessing and managing MySQL databases, featuring multi-layer security and high-performance connection pooling.
MySQL Server Pro
A MySQL server with CRUD operations, database anomaly analysis, and support for SSE and STDIO.
CData Sage 200
A read-only MCP server for querying live Sage 200 data, powered by the CData JDBC Driver.
Sefaria Jewish Library MCP Server
Provides access to Jewish texts from the Sefaria library.
Outreach.io by CData
A read-only MCP server for querying live data from Outreach.io using the CData JDBC Driver.
MCP Firebird
An MCP server for Firebird SQL databases, enabling LLMs to securely access, analyze, and manipulate database content.
Snowflake MCP Service
An MCP server for interacting with Snowflake databases.
OpenGov MCP Server
Access Socrata Open Data APIs from government data portals.
MCP-PostgreSQL-Ops
MCP-PostgreSQL-Ops is a professional MCP server for PostgreSQL database operations, monitoring, and management. Supports PostgreSQL 12-17 with comprehensive database analysis, performance monitoring, and intelligent maintenance recommendations through natural language queries.
PocketBase MCP Server
Interact with a PocketBase instance to manage records and files in collections.