NetworkX MCP Server logo

NetworkX MCP Server

Community
brightlikethelight

🕸️ First NetworkX MCP server for graph analysis in AI conversations | Community & Enterprise editions | Graph algorithms • Network analysis • MCP integration

Publisherbrightlikethelight
Repositorynetworkx-mcp-server
LanguagePython
Forks
5
Stars
20
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    NetworkX MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    20 stars and 5 forks from the linked repository.

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.

CI Release Security Docker PyPI Python NetworkX MCP License: MIT Academic

🎓 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

bash
pip install networkx-mcp-server

🚀 Quick Start

1. Install the server

bash
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

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 API
  • build_citation_network - Build citation networks from seed DOIs
  • analyze_author_impact - Calculate h-index and impact metrics for authors
  • find_collaboration_patterns - Analyze co-authorship networks
  • detect_research_trends - Identify publication and citation trends over time
  • recommend_papers - Get paper recommendations based on citation patterns
  • export_bibtex - Export citation networks in BibTeX format

📊 Core Graph Operations

  • create_graph - Create directed or undirected graphs
  • add_nodes / remove_nodes - Add or remove nodes
  • add_edges / remove_edges - Add or remove edges
  • get_info - Get basic graph statistics
  • list_graphs - List all stored graphs
  • delete_graph - Delete a graph from storage
  • shortest_path - Find optimal paths between nodes
  • get_neighbors - Get all neighbors of a node
  • set_node_attributes / get_node_attributes - Manage node metadata
  • set_edge_attributes / get_edge_attributes - Manage edge weights and metadata

🔍 Analysis Operations

  • degree_centrality - Find the most connected nodes
  • betweenness_centrality - Identify bridges and key connectors
  • centrality_measures - Multiple centrality metrics at once
  • pagerank - Google's PageRank algorithm for node importance
  • connected_components - Find isolated subgraphs
  • community_detection - Discover natural groupings
  • clustering_coefficients - Measure local clustering
  • graph_statistics - Comprehensive graph statistics
  • minimum_spanning_tree - Find minimum spanning tree
  • cycles_detection - Detect cycles in a graph
  • graph_coloring - Greedy vertex coloring
  • matching - Maximum weight matching
  • maximum_flow - Maximum flow in directed graphs
  • topological_sort - Topological ordering of DAGs
  • subgraph - Extract induced subgraph as new graph
  • merge_graphs - Compose two graphs into one

🎨 Visualization & I/O

  • visualize_graph - Create PNG visualizations with multiple layouts
  • import_csv - Load graphs from edge lists
  • export_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

bash
# 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

bash
pytest tests/working/

📚 Documentation

🤝 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

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "bright-l01-networkx-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "networkx-mcp-server"
      ]
    }
  }
}

Use NetworkX MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once NetworkX MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add NetworkX MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the NetworkX MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "bright-l01-networkx-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "networkx-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the NetworkX MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the NetworkX MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use NetworkX MCP Server to help me with this task?
NetworkX MCP Server
Sure. I read it.
Here is what I found using NetworkX MCP Server.

Frequently asked questions

What is the NetworkX MCP Server MCP server used for?

NetworkX MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use NetworkX MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use NetworkX MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use NetworkX MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With NetworkX MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect NetworkX MCP Server MCP to TypingMind?

NetworkX MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does NetworkX MCP Server MCP provide in TypingMind?

NetworkX MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use NetworkX MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If NetworkX MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇