Snak1nya commited on
Commit
3036f5b
Β·
verified Β·
1 Parent(s): 5d7da63

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +75 -3
README.md CHANGED
@@ -1,3 +1,75 @@
1
- ---
2
- license: cc-by-nc-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MCPCorpus: A Large-Scale Evolvable Dataset for Model Context Protocol Ecosystem and Security Analysis
2
+
3
+ **MCPCorpus** is a comprehensive dataset for analyzing the Model Context Protocol (MCP) ecosystem, containing ~14K MCP servers and 300 MCP clients with 20+ normalized metadata attributes.
4
+
5
+ ## πŸ“Š Dataset Overview
6
+
7
+ - **Scale**: ~14K MCP servers + 300 MCP clients
8
+ - **Attributes**: 20+ normalized metadata per artifact
9
+ - **Sources**: GitHub, community hubs, package managers
10
+ - **Applications**: Ecosystem analysis, security research, interoperability studies
11
+
12
+ ## πŸ“ Structure
13
+
14
+ ```
15
+ MCPCorpus/
16
+ β”œβ”€β”€ Crawler/ # Data collection tools
17
+ β”‚ β”œβ”€β”€ Servers/ # Server data (mcpso_servers_cleaned.json)
18
+ β”‚ β”œβ”€β”€ Clients/ # Client data (mcpso_clients_cleaned.json)
19
+ β”‚ β”œβ”€β”€ github_info_collector.py # GitHub metadata collector
20
+ β”‚ └── data_cleaner.py # Data normalization
21
+ └── Website/ # Web search interface
22
+ β”œβ”€β”€ server.py # Local web server
23
+ └── index.html # Search interface
24
+ ```
25
+
26
+ ## πŸš€ Quick Start
27
+
28
+ ### Explore Dataset
29
+ ```bash
30
+ cd Website
31
+ python server.py
32
+ # Open http://localhost:8000
33
+ ```
34
+
35
+ ### Access Data Programmatically
36
+ ```python
37
+ import json
38
+ import pandas as pd
39
+
40
+ # Load datasets
41
+ with open('Crawler/Servers/mcpso_servers_cleaned.json', 'r') as f:
42
+ servers = json.load(f)
43
+ with open('Crawler/Clients/mcpso_clients_cleaned.json', 'r') as f:
44
+ clients = json.load(f)
45
+
46
+ # Convert to DataFrame
47
+ servers_df = pd.DataFrame(servers)
48
+ clients_df = pd.DataFrame(clients)
49
+ ```
50
+
51
+ ### Update Dataset (Optional)
52
+ ```bash
53
+ # Collect new data
54
+ cd Crawler/Servers && python Server_request.py
55
+ cd ../Clients && python Client_request.py
56
+
57
+ # Add GitHub metadata
58
+ cd .. && python github_info_collector.py --token YOUR_GITHUB_TOKEN
59
+ ```
60
+
61
+ ## πŸ“š Citation
62
+
63
+ If you use MCPCorpus in your research, please cite it as:
64
+ ```
65
+ @misc{lin2025largescaleevolvabledatasetmodel,
66
+ title={A Large-Scale Evolvable Dataset for Model Context Protocol Ecosystem and Security Analysis},
67
+ author={Zhiwei Lin and Bonan Ruan and Jiahao Liu and Weibo Zhao},
68
+ year={2025},
69
+ eprint={2506.23474},
70
+ archivePrefix={arXiv},
71
+ primaryClass={cs.CR},
72
+ url={https://arxiv.org/abs/2506.23474},
73
+ }
74
+ ```
75
+