Spaces:
Running
Running
title: MCP Research | |
emoji: π | |
colorFrom: red | |
colorTo: red | |
sdk: docker | |
app_port: 8501 | |
tags: | |
- streamlit | |
pinned: false | |
short_description: Streamlit template space | |
# AI-Powered Scientific Research Companion | |
Welcome to your AI-driven research assistantβhosted as a Hugging Face Space! | |
--- | |
## π Live Demo | |
π https://huggingface.co/spaces/your-username/MCP_Research | |
--- | |
## Features | |
- π **One-Click Discovery** | |
Search academic articles, preprints, and the open web via MCP servers (`pskill9/web-search`, `metatool-ai/metatool-app`). | |
- π **Reproducible Notebook** | |
Fetch and run code snippets for core experiments using a Python-run MCP sandbox. | |
- π **Interactive Knowledge Graph** | |
Build and explore conceptβandβmethod graphs via a vector-store MCP (Chroma). | |
- π οΈ **Provenance Tracking** | |
Store metadata and execution history in a SQL database via MCP. | |
- π¨ **Light & Dark Themes** | |
Toggle UI themes for day/night readability. | |
--- | |
## π§ Setup | |
1. **Fork or Clone** | |
```bash | |
git clone https://huggingface.co/spaces/your-username/MCP_Research.git | |
cd MCP_Research | |
Configure Endpoints | |
Copy and edit config.example.yaml β config.yaml: | |
yaml | |
Copy code | |
mcp_servers: | |
web_search: http://localhost:3000 | |
pubmed: http://localhost:3001 | |
chroma: http://localhost:3002 | |
python_run: http://localhost:3003 | |
db_url: sqlite:///embeddings.db | |
Install Dependencies | |
bash | |
Copy code | |
pip install -r requirements.txt | |
Run Locally (optional) | |
bash | |
Copy code | |
streamlit run app.py --server.port 8501 --server.address 0.0.0.0 | |
π¦ Deployment on Hugging Face | |
Create a New Space | |
Choose Streamlit as the runtime. | |
Push your repo to the Space. | |
Environment Variables / Secrets | |
In your Spaceβs Settings β Secrets, add any API keys or credentials required by your MCP endpoints. | |
Automatic Build & Launch | |
HF will install from requirements.txt and launch app.py automatically. | |
π Project Layout | |
arduino | |
Copy code | |
βββ .gitignore | |
βββ README.md | |
βββ config.yaml | |
βββ requirements.txt | |
βββ Dockerfile | |
βββ app.py | |
βββ orchestrator/ | |
β βββ client.py | |
β βββ dispatcher.py | |
β βββ provenance.py | |
βββ components/ | |
β βββ sidebar.py | |
β βββ paper_list.py | |
β βββ notebook_view.py | |
β βββ graph_view.py | |
βββ scripts/ | |
β βββ ingest.py | |
β βββ reindex.py | |
βββ demo.ipynb | |
π€ Contribute | |
β Star this Space | |
π Report issues or suggest features | |
π Submit PRs β we welcome enhancements and new MCP integrations! | |
π License | |
MIT Β© 2025 |