MalloryAI Intelligence MCP Server
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mseep_malloryai_mcp_server-0.1.1.tar.gz.
File metadata
- Download URL: mseep_malloryai_mcp_server-0.1.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b18f635ab89f4fcf478420e3769728fb85bcae0b1249616ecc43c0a1cac5e2f
|
|
| MD5 |
62c50522b22c83ecb15a13e3c103b703
|
|
| BLAKE2b-256 |
19bf8c768c08feece4f2c0f2dc7d49c8a3a690089781b5086132a7d88164b5fc
|
File details
Details for the file mseep_malloryai_mcp_server-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mseep_malloryai_mcp_server-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e30eda02245da67b69c9d0127e6c60c73cfc2dcc58c88802f79e1c5f58cc705
|
|
| MD5 |
db3500be7b6cf9a1fceb47f5165c0b0b
|
|
| BLAKE2b-256 |
3e9befc6cf6c71ebdd3ae64a8820e2f8eaebec0f4e9dcc825e8db9992633bb13
|