NetworkX MCP Server
Comprehensive Model Context Protocol server for advanced graph analysis using NetworkX, enabling graph creation, manipulation, and algorithm execution through natural language.
README
NetworkX MCP Server
Academic-focused graph analysis in your AI conversations - The first and only NetworkX MCP server specialized for academic research and citation analysis.
🎓 What is this?
NetworkX MCP Server enables Large Language Models (like Claude) to perform sophisticated academic research and citation analysis directly within conversations. Built specifically for researchers, academics, and students who need to analyze citation networks, calculate author impact metrics, and discover literature patterns.
Stop switching between VOSviewer, CitNetExplorer, and manual analysis. Start doing academic research in your AI conversations.
🎯 Key Features
🔬 Academic Research Tools
- Citation Network Analysis: Build citation networks from DOIs using CrossRef API
- Author Impact Metrics: Calculate h-index, total citations, and academic influence
- Literature Discovery: Automated paper recommendations based on citation patterns
- Collaboration Analysis: Map co-authorship networks and identify key researchers
- Research Trend Detection: Analyze publication and citation trends over time
📊 Core Graph Operations
- 43 Graph Tools: From basic operations to advanced algorithms like PageRank
- BibTeX Export: Export citation networks in academic-standard BibTeX format
- CrossRef Integration: Access 156+ million academic papers via DOI resolution
- Visualization: Generate publication-ready network visualizations
- First of Its Kind: The only academic-focused NetworkX MCP server
🌟 Why NetworkX MCP Server for Academic Research?
- Built for Researchers: Designed specifically for academic workflows and citation analysis
- Real-time Literature Discovery: Find related papers and collaboration opportunities instantly
- Reproducible Research: Python-based, version-controlled, and shareable analysis workflows
- Academic Data Integration: Direct access to CrossRef's 156+ million paper database
- No Enterprise Complexity: Focus on research, not IT infrastructure
- Cost-Effective: Free alternative to expensive commercial citation analysis tools
📦 Installation
pip install networkx-mcp-server
🚀 Quick Start
1. Install the server
pip install networkx-mcp-server
2. Configure Claude Desktop
Add to your claude_desktop_config.json:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"networkx": {
"command": "python",
"args": ["-m", "networkx_mcp"]
}
}
}
3. Restart Claude Desktop
The NetworkX tools will now be available in your conversations!
🧪 Test It Works
Ask Claude: "Create a graph called 'test', add nodes 1, 2, 3 with edges between them, then find the shortest path from 1 to 3"
📊 Available Operations
🔬 Academic Research Functions
resolve_doi- Resolve DOI to publication metadata using CrossRef APIbuild_citation_network- Build citation networks from seed DOIsanalyze_author_impact- Calculate h-index and impact metrics for authorsfind_collaboration_patterns- Analyze co-authorship networksdetect_research_trends- Identify publication and citation trends over timerecommend_papers- Get paper recommendations based on citation patternsexport_bibtex- Export citation networks in BibTeX format
📊 Core Graph Operations
create_graph- Create directed or undirected graphsadd_nodes/remove_nodes- Add or remove nodesadd_edges/remove_edges- Add or remove edgesget_info- Get basic graph statisticslist_graphs- List all stored graphsdelete_graph- Delete a graph from storageshortest_path- Find optimal paths between nodesget_neighbors- Get all neighbors of a nodeset_node_attributes/get_node_attributes- Manage node metadataset_edge_attributes/get_edge_attributes- Manage edge weights and metadata
🔍 Analysis Operations
degree_centrality- Find the most connected nodesbetweenness_centrality- Identify bridges and key connectorscentrality_measures- Multiple centrality metrics at oncepagerank- Google's PageRank algorithm for node importanceconnected_components- Find isolated subgraphscommunity_detection- Discover natural groupingsclustering_coefficients- Measure local clusteringgraph_statistics- Comprehensive graph statisticsminimum_spanning_tree- Find minimum spanning treecycles_detection- Detect cycles in a graphgraph_coloring- Greedy vertex coloringmatching- Maximum weight matchingmaximum_flow- Maximum flow in directed graphstopological_sort- Topological ordering of DAGssubgraph- Extract induced subgraph as new graphmerge_graphs- Compose two graphs into one
🎨 Visualization & I/O
visualize_graph- Create PNG visualizations with multiple layoutsimport_csv- Load graphs from edge listsexport_json- Export graphs in standard formats
Academic Research Example
Human: Analyze citation patterns for the paper "Attention Is All You Need"
Claude: I'll help you analyze citation patterns for that influential paper.
[Resolves DOI: 10.5555/3295222.3295349]
Found paper: "Attention Is All You Need" by Vaswani et al. (2017)
Citations: 82,892 | Journal: NIPS
[Builds citation network from seed DOI]
Built citation network with 847 nodes and 2,341 edges from 2-hop analysis
[Analyzes author impact]
Ashish Vaswani: h-index 45, total citations 127,436
Most impactful paper: "Attention Is All You Need" (82,892 citations)
[Finds collaboration patterns]
Key collaborators: Noam Shazeer (Google), Niki Parmar (Google)
Research cluster: Google Brain team with 47 collaborations
[Detects research trends]
Trend: MASSIVE INCREASE in attention mechanism research post-2017
2017: 12 papers → 2023: 3,847 papers (320x growth)
[Recommends related papers]
Top recommendations based on co-citation patterns:
1. "BERT: Pre-training of Deep Bidirectional Transformers" (2018)
2. "GPT-2: Language Models are Unsupervised Multitask Learners" (2019)
3. "RoBERTa: A Robustly Optimized BERT Pretraining Approach" (2019)
[Exports BibTeX]
Generated BibTeX file with 847 entries ready for LaTeX integration
🎓 Academic Use Cases
1. Literature Review & Meta-Analysis
- Automatically expand citation networks from key papers
- Identify research gaps and emerging trends
- Calculate field-wide impact metrics
- Generate comprehensive BibTeX databases
2. Collaboration Network Analysis
- Map research collaborations within and across institutions
- Identify key researchers and potential collaborators
- Analyze interdisciplinary connections
- Study research community evolution
3. Citation Pattern Analysis
- Track knowledge diffusion through citation networks
- Identify influential papers and breakthrough research
- Analyze citation bias and self-citation patterns
- Study geographic and institutional citation patterns
4. Research Trend Detection
- Identify emerging research areas and hot topics
- Analyze publication volume and citation trends
- Track research lifecycle from emergence to maturity
- Predict future research directions
5. Academic Impact Assessment
- Calculate comprehensive author impact metrics
- Compare researchers across different career stages
- Analyze journal and conference impact patterns
- Study citation half-life and research longevity
📈 Performance
- Memory: ~70MB (including Python, NetworkX, and visualization)
- Graph Size: Tested up to 10,000 nodes
- Operations: Most complete in milliseconds
- Visualization: 1-2 seconds for complex graphs
🛠️ Development
Running from Source
# Clone the repository
git clone https://github.com/Bright-L01/networkx-mcp-server
cd networkx-mcp-server
# Install dependencies
pip install -e ".[dev]"
# Run the server
python -m networkx_mcp
Running Tests
pytest tests/working/
📚 Documentation
- API Reference - Detailed operation descriptions
- Contributing - How to contribute
🤝 Contributing
We welcome contributions! This is the first NetworkX MCP server, and there's lots of room for improvement:
- Add more graph algorithms
- Improve visualization options
- Add graph file format support
- Optimize performance
- Write more examples
📄 License
MIT License - See LICENSE for details.
🙏 Acknowledgments
- NetworkX - The amazing graph library that powers this server
- Anthropic - For creating the Model Context Protocol
- The MCP community - For inspiration and examples
Built with ❤️ for the AI and Graph Analysis communities
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。