Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
@@ -13,15 +13,103 @@ short_description: Streamlit template space
|
|
13 |
|
14 |
# AI-Powered Scientific Research Companion
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
-
##
|
24 |
-
|
|
|
25 |
```bash
|
26 |
-
git clone https://huggingface.co/spaces/your-username/MCP_Research
|
27 |
-
cd MCP_Research
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
# AI-Powered Scientific Research Companion
|
15 |
|
16 |
+
Welcome to your AI-driven research assistantβhosted as a Hugging Face Space!
|
17 |
|
18 |
+
---
|
19 |
+
|
20 |
+
## π Live Demo
|
21 |
+
|
22 |
+
π https://huggingface.co/spaces/your-username/MCP_Research
|
23 |
+
|
24 |
+
---
|
25 |
+
|
26 |
+
## Features
|
27 |
+
|
28 |
+
- π **One-Click Discovery**
|
29 |
+
Search academic articles, preprints, and the open web via MCP servers (`pskill9/web-search`, `metatool-ai/metatool-app`).
|
30 |
+
|
31 |
+
- π **Reproducible Notebook**
|
32 |
+
Fetch and run code snippets for core experiments using a Python-run MCP sandbox.
|
33 |
+
|
34 |
+
- π **Interactive Knowledge Graph**
|
35 |
+
Build and explore conceptβandβmethod graphs via a vector-store MCP (Chroma).
|
36 |
+
|
37 |
+
- π οΈ **Provenance Tracking**
|
38 |
+
Store metadata and execution history in a SQL database via MCP.
|
39 |
+
|
40 |
+
- π¨ **Light & Dark Themes**
|
41 |
+
Toggle UI themes for day/night readability.
|
42 |
+
|
43 |
+
---
|
44 |
|
45 |
+
## π§ Setup
|
46 |
+
|
47 |
+
1. **Fork or Clone**
|
48 |
```bash
|
49 |
+
git clone https://huggingface.co/spaces/your-username/MCP_Research.git
|
50 |
+
cd MCP_Research
|
51 |
+
Configure Endpoints
|
52 |
+
Copy and edit config.example.yaml β config.yaml:
|
53 |
+
|
54 |
+
yaml
|
55 |
+
Copy code
|
56 |
+
mcp_servers:
|
57 |
+
web_search: http://localhost:3000
|
58 |
+
pubmed: http://localhost:3001
|
59 |
+
chroma: http://localhost:3002
|
60 |
+
python_run: http://localhost:3003
|
61 |
+
db_url: sqlite:///embeddings.db
|
62 |
+
Install Dependencies
|
63 |
+
|
64 |
+
bash
|
65 |
+
Copy code
|
66 |
+
pip install -r requirements.txt
|
67 |
+
Run Locally (optional)
|
68 |
+
|
69 |
+
bash
|
70 |
+
Copy code
|
71 |
+
streamlit run app.py --server.port 8501 --server.address 0.0.0.0
|
72 |
+
π¦ Deployment on Hugging Face
|
73 |
+
Create a New Space
|
74 |
+
|
75 |
+
Choose Streamlit as the runtime.
|
76 |
+
|
77 |
+
Push your repo to the Space.
|
78 |
+
|
79 |
+
Environment Variables / Secrets
|
80 |
+
In your Spaceβs Settings β Secrets, add any API keys or credentials required by your MCP endpoints.
|
81 |
+
|
82 |
+
Automatic Build & Launch
|
83 |
+
HF will install from requirements.txt and launch app.py automatically.
|
84 |
+
|
85 |
+
π Project Layout
|
86 |
+
arduino
|
87 |
+
Copy code
|
88 |
+
βββ .gitignore
|
89 |
+
βββ README.md
|
90 |
+
βββ config.yaml
|
91 |
+
βββ requirements.txt
|
92 |
+
βββ Dockerfile
|
93 |
+
βββ app.py
|
94 |
+
βββ orchestrator/
|
95 |
+
β βββ client.py
|
96 |
+
β βββ dispatcher.py
|
97 |
+
β βββ provenance.py
|
98 |
+
βββ components/
|
99 |
+
β βββ sidebar.py
|
100 |
+
β βββ paper_list.py
|
101 |
+
β βββ notebook_view.py
|
102 |
+
β βββ graph_view.py
|
103 |
+
βββ scripts/
|
104 |
+
β βββ ingest.py
|
105 |
+
β βββ reindex.py
|
106 |
+
βββ demo.ipynb
|
107 |
+
π€ Contribute
|
108 |
+
β Star this Space
|
109 |
+
|
110 |
+
π Report issues or suggest features
|
111 |
+
|
112 |
+
π Submit PRs β we welcome enhancements and new MCP integrations!
|
113 |
+
|
114 |
+
π License
|
115 |
+
MIT Β© 2025
|