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.
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 .
For development work, install the optional dependencies:
# Using uv
uv pip install -e ".[lint,tools]"
# Or using pip
pip install -e ".[lint,tools]"
This project uses pre-commit hooks to ensure code quality. Install them with:
pre-commit install
./scripts/install-commit-hook.sh
Create a .env
file in the project root with the following variables:
APP_ENV=local
MALLORY_API_KEY=your_api_key_here
python -m malloryai.mcp.app
or
uv run malloryai/mcp/app.py
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"
}
}
}
}
.
├── 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
This project uses:
Format your code with:
black .
isort .
flake8
This project follows the conventional commit format. Each commit message should follow this pattern:
<type>[(scope)]: <description>
Where type
is one of:
feat
or feature
: New featurefix
, bugfix
, or hotfix
: 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 commitsExample: feat(server): add new authentication method
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature
)git commit -m 'feat: add some amazing feature'
)git push origin feature/amazing-feature
)Seamless access to top MCP servers powering the future of AI integration.