A Python-based Retrieval Augmented Generation (RAG) system that provides tools for note-taking, file management, content processing, and interaction with AI models.
This system implements a Retrieval Augmented Generation (RAG) framework using the FastMCP server to expose various tools that allow AI assistants to:
- Create and manage notes
- Read and process Python files
- Access transcript information
- Work with CSV data
- Interact with Git repositories
The system is designed to provide AI models with access to external data sources, enhancing their ability to provide relevant and contextual responses.
- Note Management: Add, read, and retrieve notes stored in a central location
- File Processing: Read and analyze Python files for context
- Transcript Access: Read transcript data for conversational context
- CSV File Handling: Create and manage CSV files
- Git Repository Integration: Read Git repository contents
The system provides several tools that can be invoked by AI assistants:
add_note(message): Append a new note to the sticky note fileread_notes(): Read all notes from the sticky note fileget_latest_note(): Retrieve the most recent noteread_transcript(): Read the latest transcriptread_python_file(): Read and explain Python file contentscreate_csv_file(csv_content): Create a CSV file with provided contentread_git_repo(): Read Git repository contents
notes:latest: A resource that provides access to the most recent note
note_summary_prompt(): Generates a prompt asking the AI to summarize the current notes
mcp.py: Main Python file with tool implementationsscratch.text: Storage file for notestranscript.txt: File containing transcript datasecurity_plus_notes.csv: CSV file for data storageclaude_directory/: Directory for storing notes and other data
-
Ensure all dependencies are installed:
pip install fastmcp -
Run the server:
python mcp.py -
The AI assistant can now use the exposed tools to interact with the system
This system is designed to work with AI models like Claude that support tool use. The FastMCP server exposes the tools that the AI can invoke during conversations to fetch relevant information or store user inputs.
- Python 3.6+
- FastMCP library