- MCP-Server-Research-Tool
MCP-Server-Research-Tool
MCP-Server-Research-Tool
A long-form research assistant tool powered by LLMs, designed to gather information from primary sources, podcasts, academic PDFs, textbooks, YouTube, and more. This tool simulates deep, realistic research and outputs structured markdown files containing both a detailed topic summary and source list.
🚀 Installation
To get started on macOS:
You will need a free API key from OpenRouter or another source, scroll to bottom after step 2 if you don't have a dedicated one for this project.
- Open Terminal (
⌘ + Space, typeTerminal, hit Enter). - Run the following commands:
git clone https://github.com/atimmeny27/MCP-Server-Research-Tool
cd MCP-Server-Research-Tool
chmod +x start.sh
- Then
python3 -m ensurepip --upgrade
python3 -m pip install -r requirements.txt
clear
- The tool is now verified, if you still need to setup an API go below. Anytime you wish to launch the program, enter
./start.sh
- You can also launch the scripts manually with
python MCP_assistant.py "Topic Here"
then
MCP_DURATION=long python send_to_claude.py
-
Step 3 is just a script to automate 4, they accomplish the same thing.
-
I hope you find this helpful and a fun tool to learn with. To edit the research prompt, look around lines 18-220 in send_to_claude.py. It will be the long f-string where the intructions are sent to Claude.
-
The more specific the research topic, the better the results will be (ex. "AI" vs “The Evolution of Machine Learning into Large Language Models and Modern AI (1950–2024): Key breakthroughs, paradigms, and societal impact”
-
Please be specific with dates, times, geography, people, etc... and just rename the markdown (.md) file so they arent 100 characters long.
-
Once it's done, you can scroll through in the terminal, or search for "whatever-your-search-was.md" in finder, this will pull up the notes as well as sources used. This outputs into markdown, so its best to open the notes in a markdown friendly editor (like obsidian)
-
Enter your topic, and wait up to 2 minutes for the LLM to research using primary sources, podcasts, pdfs, textbooks, and academic materials. This is being forwarded to Claude, so spelling errors or niche topics may still cause confusion.
-
If you see "🔐 Using key: sk-or-v1-2 ...", it means it's currently researching, even if it says "❌ Could not retrieve video."
-
If you want to add this as a desktop tool, you can copy the "start.sh" contents (
open -e start.sh), then paste them into a shell script inside the apple automator app. -
To start tool in the future you only need
cd MCP-Server-Research-Tool
./start.sh
🔑 How to Get Your Free OpenAI API Key
To use this tool, you’ll need a free API key from OpenRouter (or OpenAI / Anothropic but this one is free). Follow these steps:
- Sign Up or Log In
Go to https://platform.openai.com/signup ➡️ Create an account or log in with Google/GitHub.
-
Generate an API Key • After logging in, click your profile icon → “Keys” • Click “Create Key” and copy the resulting string (starts with sk-or-...) • Save it somewhere safe
-
Set Up Your Key Locally
-
To permanently keep this key active
touch ~/.zshrc
open -e ~/.zshrc
-
Then paste
export OPENROUTER_API_KEY="your-key-here-starting-with-sk-"at the end of the file, and save it -
Now paste
source ~/.zshrcin your terminal or refresh the session. You can now start the tool with./start.sh -
If you plan on using other projects with API keys in terminal, you may want to do step 3 inside of a .env file in this root directory(
touch .env open -e .envpaste here) -
Start tool with
./start.sh, if you get any errors it probably means wikipedia's API is overloaded and cannot process your request, just try in a few minutes (or paste a traceback log to chat gpt if you want) -
Enter your topic, and wait up to 2 minutes for the LLM to research using primary sources, podcasts, pdfs, textbooks, and academic materials.
-
If you see "✅ Saved context to context.json 🔐 Using key: sk-or-v1-2 ...", it means it's currently researching