EU AI Act Compliance Chatbot
An MCP server to answer questions on the original EU AI Act
thoughtgeek
README
EU AI Act Compliance Chatbot
A chatbot designed to answer questions about the EU AI Act using a hybrid retrieval approach (vector search + knowledge graph).
Setup
- Install Poetry: If you don't have Poetry installed, follow the instructions here.
- Clone the repository:
git clone <your-repo-url> cd eu-ai-act-chatbot - Install dependencies:
poetry install - Set up environment variables:
- Copy the
.env.examplefile to.env:cp .env .env # Or .env.example if you rename the template - Fill in your API keys and service details in the
.envfile.
- Copy the
- Download the EU AI Act PDF: Place the PDF file in a
data/directory (you might need to create it) and name iteu_ai_act.pdf.
Processing Data
To process the EU AI Act document and populate the vector store and knowledge graph:
poetry shell
python -m scripts.process_eu_ai_act
Running the API
To run the FastAPI application locally:
poetry shell
uvicorn src.eu_ai_act_chatbot.api.main:app --reload
The API will be available at http://127.0.0.1:8000. You can access the interactive documentation at http://127.0.0.1:8000/docs.
Running Tests
poetry shell
pytest
Deployment (AWS Lambda)
- Create a deployment package:
# Ensure dependencies are installed in the project's virtual env poetry install --no-dev # Create the package directory mkdir package # Install dependencies into the package directory poetry run pip install --upgrade pip poetry run pip install -r <(poetry export -f requirements.txt --without-hashes) --target ./package # Copy source code and Lambda handler cp -r ./src ./package/ cp lambda_function.py ./package/ # Create the zip file cd package zip -r ../deployment.zip . cd .. - Upload
deployment.zipto your AWS Lambda function. - Ensure the Lambda function's handler is set to
lambda_function.lambda_handler. - Configure necessary environment variables in the Lambda function settings.
Recommended Servers
Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.
mixpanel
Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.
MCP PubMed Search
Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.
dbt Semantic Layer MCP Server
A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.
Crypto Price & Market Analysis MCP Server
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.
Vectorize
Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
Nefino MCP Server
Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.
MATLAB MCP Server
Integrates MATLAB with AI to execute code, generate scripts from natural language, and access MATLAB documentation seamlessly.
Macrostrat MCP Server
Enables Claude to query comprehensive geologic data from the Macrostrat API, including geologic units, columns, minerals, and timescales through natural language.
MCP Word Counter
A Model Context Protocol server that provides tools for analyzing text documents, including counting words and characters. This server helps LLMs perform text analysis tasks by exposing simple document statistics functionality.