/gephi-network-analysis:gephifrom Gephi AI
Controls Gephi Desktop via MCP tools to build, analyze, style, filter, and export network graphs. Guides users through network analysis workflows including community detection, layout, and scale-free testing.
Ships in Gephi AI. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Skill version 1.23.3. If commands or tools mentioned here seem missing, the installed plugin is outdated; see the README's Updating section.
You have access to 121 MCP tools from the gephi-ai server (tool names start with gephi_; Claude Code shows them as mcp__plugin_gephi-network-analysis_gephi-ai__gephi_* from the plugin, or mcp__gephi-ai__gephi_* when the server is registered by hand) for controlling Gephi Desktop. Use them to build, analyze, style, and export network graphs.
Write for someone who has never used network software. The first time you use a technical term with the person, gloss it in a few words.
gephi_health_check. Then check which workspace is open (gephi_list_workspaces) and whether a filter is active (filter_active in replies): a filter from an earlier conversation stays on, and exports and checks then see only what it shows.update, tell the person once, with its how_to_update step.gephi_get_selection reads what they have selected in the Gephi window. When they say "these", "this group", or "the ones I selected", read the selection first and answer about those exact nodes; never ask them to type node names. Call gephi_set_selection_mode with mode rectangle when a session starts, then tell them they can drag a box around nodes and the selection stays while they come back to the conversation. Hovering does not register; the box drag is the pointing gesture. If a reply's rectangle_selection is false, they switched modes: the dashed-square icon in the thin left toolbar turns it back on.gephi_profile_graph, gephi_similarity_layout, gephi_community_layout, and gephi_community_stability see only the visible nodes, while gephi_get_graph_stats reports the full graph. Replies carry filter_warning when these disagree, plus view ("visible" or "full"), filter_active, full_node_count, and visible_node_count. Never present a number from a filtered view as a fact about the whole network: name both counts and ask whether the filter was intended. gephi_reset_filters clears it.gephi_community_stability before naming, captioning, or colouring by groups, and say how stable they are. Report mean_stability in plain words ("accounts grouped together stay together about 40% of the time"). Small stable cores appear even in randomly wired networks, so their number or coverage is never evidence of communities. Judge by mean_stability and by how large the biggest cores are, and name only large cores whose members make sense together. When consensus_warning appears, say the communities are loose.clustering_vs_random from the profile (the actual clustering over what a random network with the same degrees would show), never the raw coefficient alone.reciprocity (the share of ties returned) in gephi_profile_graph before calling a directed network a conversation. When few ties are returned, describe hubs as accounts people address, not as partners in an exchange.gephi_profile_graph instead: the degree block's max against its median, top_5pct_edge_share, and gini (degree inequality, 0 for equal and near 1 when one node holds everything). Say it as a property of this network ("a few accounts hold most of the ties"). Never report a fitted exponent as a finding. A formal test needs a separate package; ask before installing one.caveats block naming a known Gephi defect (the modularity resolution runs the reverse of the literature's convention; centrality ignores edge weights). Pass it on rather than reporting the bare number. Gephi's eigenvector centrality can rank nodes differently from a standard calculation: never rank on it alone, and compare with PageRank.gephi_export_legend). A network image circulated without that context ("storyletting") is the field's named failure mode; see references/reading-network-maps.md.gephi_session_receipt lists the mappings, statistics, settings, and versions behind a figure for a methods section.gephi_claim_record re-reads the cited nodes and values from the live graph and returns a record to cite. See references/claim-verification.md.gephi_import_file for a file, or gephi_add_nodes and gephi_add_edges in batches of a few hundred (see "Reading and cleaning data").modularity_class, degree, and centrality columns do not exist until their statistic runs.gephi_visual_qa with partition_column set. If the verdict is "none", the attribute does not match the topology and colouring by it would mislead; say so and compute communities with gephi_compute_modularity instead. When building a demo or synthetic network, wire real structure (preferential attachment within groups, hub-biased bridges between them, more than 60% of edges within groups), never random edges with decorative group labels.gephi_visual_qa and export a small PNG to look at; fix every warning before finishing.extent.suggested_export in gephi_visual_qa, then gephi_export_png or gephi_export_svg (the parameter is file). gephi_export_figure writes the map and its legend as one figure, with a title and reading notes that you write and it never invents. For interactive exploration in MCP Apps hosts (claude.ai, Claude Desktop), prefer gephi_view_graph: it gives an inline view with cluster captions (caption_column), per-node questions, ego highlighting, refresh, and a time slider on dynamic graphs. When that view is unavailable or unsuitable, build an interactive HTML or canvas artifact from gephi_export_gexf data (positions, colours, and sizes are baked in) rather than settling for a static PNG. Keep PNG for publication stills. Add the caption and legend.Run gephi_profile_graph: one call gives size, density, the degree distribution, components, isolates, the weight distribution, modularity, clustering against its random expectation, flags, and type_signals. Absorb it, give a short plain-language first reading that joins their description with the numbers, and ask the two or three questions the profile raises. The first reading is provisional by design: success is what the person notices next, not how fast a verdict lands.
What kind of network is it? The profile's type_signals list what the structure suggests about the kind of network, and an import's merged_rows_note and direction_note say what Gephi decided while reading the file. Each signal gives its evidence, a reading, and one question. Structure shows what a network could be, never what it is, so put the questions to the person once, together with what the column names suggest, before choosing metrics. If they cannot answer, use the default below and list it under "Choices I made".
| Signal or note | If the person confirms | Default when they cannot answer |
|---|---|---|
two_mode | Two kinds of node (people and events). Centrality and community detection do not apply as they stand. Use gephi_bipartite_layout, or gephi_bipartite_projection to get ties among one kind. | Report it as possibly two-mode; run no one-mode statistics as findings. |
all_ties_returned | The ties are mutual. Read degree, not in- and out-degree, and do not report reciprocity. | Treat as mutual and say so. |
direction_note | Direction is real only if the data has it. | Do not interpret direction. |
negative_weights | Positive and negative ties mean different things. Analyse them apart (filter by weight), or take absolute values and say which. | Leave weights out of statistics and layout, and say so. |
weight_meaning | A larger weight is a stronger tie: carry on. It is a distance or cost: do not filter "weak" ties or weight the layout by it without inverting it first. | Treat as strength and say it was assumed. |
merged_rows_note | Weights count repeated rows. Read them as counts. | Read them as counts. |
time | Read period by period with gephi_get_timeline and gephi_time_slice (references/change-over-time.md). When its evidence shows no node or tie with a time, put the date column on the timeline first with gephi_set_time_from_columns. | One network across all periods; say so. |
self_loops | Keep them, or remove them if they are left over from the data. | Keep them and report the count. |
| tree-like flag on an org chart or other hierarchy | Communities found are branches of the tree, not social groups. | Describe groups as branches. |
A graph with a date column can fail to export with an error naming the column; follow the error (gephi_edit_column, convert to string) and run the tool again.
Three numbers set layout parameters before any render:
weights.heavy_tailed: a few ties are far heavier than the rest and will dominate a force layout. Log-transform the weights or lower edgeWeightInfluence first.degree.assortativity (hubs link mostly to small nodes, not to each other): hub-and-spoke wiring. Each hub sits in a halo of its neighbours that the layout produces; that halo is not a finding. Leave Dissuade Hubs off.scalingRatio before rendering. The tree-like flag: force layouts often leave such communities mixed; run modularity, then compare gephi_community_layout with a force layout by gephi_visual_qa's separation, keep the clearer, and state the disc layout's reading rule if it wins (disc placement is for legibility, not structure).Then let their goal and the profile guide every later choice:
gephi_similarity_layout with basis="role" (say "similar role", never "unconnected"), checked against degree, betweenness, and clustering; importance by association, eigenvector (with the caveat above).gephi_compare_partitions against their grouping shows which detected group matches which known one, and how closely; check stability before reading it."Is this more clustered, or more hub-heavy, than chance?" needs a baseline. gephi_generate_graph makes one in its own workspace, the same size as the real network: "random" with wiring_probability set to the real graph's density (undirected), or "preferential_attachment" with edges_per_node near edges ÷ nodes for hubs that come from growth. Run the same statistic on both and report the difference, naming the model. A resemblance never shows how the real network formed: say "more clustered than a random graph of the same size", never "it grew by preferential attachment". gephi_profile_graph's clustering_vs_random already gives the clustering comparison without a second graph.
{"edge.color": "#D0D0D0", "edge.opacity": 90, "edge.thickness": 1.0, "edge.curved": false} so the groups read first and dark edge bundles are not mistaken for nodes. Set contrast with the tone and lower opacity only a little: low opacity piles up into uneven texture where edges bundle. Label settings change labels only; they never reset edge values. Colouring edges by their source ("edge.color": "source") is a deliberate choice for showing where ties come from, not a default; say so in the caption. Curve edges only when the network is directed and direction matters.colors unset: the plugin gives the largest group the first of eight colours validated for readability, the next largest the second, and so on. The order keeps the five largest groups distinguishable wherever they touch, even for colour-blind readers; past five groups, label the groups as well as colouring them. On a dark background, pass the dark-surface palette. Colour must never be the only way to tell groups apart: label the largest nodes or the groups. Past eight groups, the plugin adds generated colours and a palette_note; say in the caption that colour alone cannot separate them.
{"0":[42,120,214],"1":[237,161,0],"2":[0,131,0],"3":[232,123,164],"4":[74,58,167],"5":[227,73,72],"6":[27,175,122],"7":[235,104,52]}{"0":[57,135,229],"1":[201,133,0],"2":[0,131,0],"3":[213,81,129],"4":[144,133,233],"5":[230,103,103],"6":[25,158,112],"7":[217,89,38]}gephi_add_column, then gephi_batch_set_node_attributes) and colour by that column, so the legend and the figure show names, not numbers.gephi_size_by_ranking default, 10 to 100); widen the range for a large print. When betweenness spans several orders of magnitude, most nodes end up at the minimum size; size by degree instead. When a few nodes dwarf the rest (a mailing list with ten times anyone's contacts), pass cap at a value just above the busiest ordinary node, so everyone else stays visible, and say in the caption which nodes sit at the cap; in directed communication data, sizing by in-degree often shows who is actually written to.{"node.label.show": false, "edge.color": "#D0D0D0", "edge.opacity": 90, "edge.thickness": 1.0, "edge.curved": false, "node.opacity": 100, "node.border.width": 0.3, "arrow.size": 0}{"node.label.show": true, "node.label.proportinalSize": true, "node.label.font": "Arial 10 Plain", "node.label.outline.size": 4, "node.label.outline.opacity": 95, "node.label.avoidOverlap": true}. proportinalSize is Gephi's real spelling. Fonts may have multi-word names ("Courier New 12 Bold"). node.label.overlapGridSize (for example 50) sets how finely avoidOverlap checks for collisions. For readable captions on hubs, use gephi_label_clusters, which sizes them to the layout; a fixed font vanishes on large layouts, and with proportional size off Gephi clamps every label to its node.background.color with gephi_set_preview_settings; gephi_export_png fills the background with it. Pass the dark-surface palette. For a labelled export, stay on white. To composite or re-render outside Gephi, see references/external-rendering.md.The full five-pass Beautiful Graph Recipe (settings, preview values, and troubleshooting) is in references/layout-guide.md. In short, following Mathieu Jacomy's ForceAtlas 2 tutorials:
{"algorithm": "ForceAtlas 2", "iterations": 1500, "sync": true, "properties": {"linLogMode": false, "scalingRatio": 10, "strongGravityMode": true, "gravity": 0.01, "distributedAttraction": false}}. Raise scalingRatio for more room. For a quick look, stop here.scalingRatio by about 20, lower gravity to 0.001 or below, and run 3000 iterations or more; large networks keep improving for a long time. Strong gravity at a small value keeps islands and filaments in frame; if a round containing circle shows, lower it, because it makes the network look denser than it is.distributedAttraction) stays off: it acts only on directed networks and costs cluster separation. Use it only as a deliberate exploration view, say so in the caption, and offer the map without it.{"algorithm": "Noverlap", "iterations": 500, "sync": true, "properties": {"margin": 5.0}}) and, when labels show, Label Adjust (500 iterations, sync: true).gephi_visual_qa with partition_column set. partition.separation is the mean distance within groups over the mean distance between random pairs: 1.0 is fully mixed, near 0 is tight, distinct groups. Track it across changes and quote before and after. Export a small PNG, diagnose with the symptom table in the layout guide (blob: gravity too high; hairball: run the LinLog pass or filter weak ties; unreadable cluster interiors: raise scalingRatio), change ONE parameter, and rerun about 300 iterations. Two or three loops usually converge; say what you saw, what separation did, and what you changed.gephi_get_available_layouts and run by name. Noverlap, OpenOrd (very large graphs), and Label Adjust are bundled with Gephi. Statistics plugins appear in gephi_list_statistics and run through gephi_run_statistic; recommend the CWTS Leiden plugin over plain modularity for large networks. For a capability Gephi lacks, check the plugin portal (gephi.org/desktop/plugins): install, restart Gephi, and it can be driven here.gephi_import_file reads GEXF, GraphML, GML, CSV, DOT, and Pajek (mode="append" adds a file to the current workspace, for example a node table to an edge list). max_node_size caps oversized nodes that would hide edges; otherwise imported sizes are kept as the file states them. A graph that looks collapsed into a small cluster has very small coordinates: run a layout.gephi_add_nodes and gephi_add_edges. An edge list adds directly; an adjacency matrix gives one edge per nonzero cell; a two-column person,event table becomes two node sets with a type attribute, or a projection (gephi_bipartite_projection); entity rows become nodes with attributes, with edges from a relationship column or from attribute similarity above a threshold (similarity in weight); JSON maps objects to nodes and references to edges; RDF maps subject and object to nodes and the predicate to the edge label.gephi_add_edges, giving each row an edge_type for its period; see references/change-over-time.md.<>&"' in every attribute value, or the import fails. Check the file parses before importing: python3 -c "import xml.dom.minidom,sys; xml.dom.minidom.parse(sys.argv[1])" file.gexf.gephi_text_to_network builds a word co-occurrence graph (options for nouns only, minimum word frequency, phrases, and generic hub words are in the text reference); do not hand-parse prose. It adds to the current workspace unless clear_existing is true. Read references/text-network-analysis.md before reporting any structural gap as a finding.gephi_query_nodes with sort_by set to the metric, columns set to the few columns you need, and limit about 10: nodes are ordered before paging, so the first page is the top of the whole graph. Without columns, every attribute of every node comes back and a long listing can overflow.gephi_run_statistic("Weighted Degree") writes a "Weighted Degree" column.gephi_detect_duplicates finds nodes whose whole value in one column matches, ignoring case only. For name variants ("J. Smith", "Smith, John"), write a normalised column first (gephi_add_column, then gephi_batch_set_node_attributes), detect on it, check each group, and merge with gephi_merge_nodes one group at a time.gephi_edit_column (delete, rename, convert type, fill empty cells, clear); a conversion reports the values it could not read in values_lost. gephi_create_regex_column flags matching rows without hiding anything.gephi_add_edge and gephi_add_edges take edge_type, so one pair can hold parallel typed edges ("cites" and "coauthor"). To compare layers, filter to one type (gephi_apply_filter with the "Edge Type" filter), compute modularity, repeat per type, and compare the partitions.gephi_set_time_from_columns gives a network time from start and end columns; gephi_time_slice opens one period in its own workspace. Lay out the whole network first so every slice keeps the same positions. See references/change-over-time.md.gephi_apply_filter and gephi_apply_filters hide nodes and change nothing; gephi_reset_filters shows them again. Pass dry_run to count what a filter would hide or remove before running it. The remove and extract tools delete, keep one undo level, and have no redo; for an experiment, duplicate the workspace first.undo_available; gephi_undo restores it. Verify after each such step before taking the next. Run gephi_remove_isolates with dry_run first and say how many would go. These take no snapshot: gephi_remove_node, gephi_remove_edge, and gephi_apply_filter or gephi_apply_filters with action="column" (it writes a column). Call gephi_snapshot first if you may need to undo one of them, or before a risky run of small edits.gephi_whatif: it edits a throwaway copy and reports the change, and the real graph is never touched.When a person is watching the Gephi window while you work (teaching, demos, paired analysis), switch to narrated pacing. Watching the instrument operate is the pedagogy; never do anything the viewer cannot follow.
gephi_focus_view: fit the graph (mode graph) after an import or layout; centre on and select a cluster before discussing it.gephi_switch_perspective (Overview, Data Laboratory, Preview).gephi_generate_graph gives a graph of known shape to teach on (pass a seed so the demo can be repeated), and a random and a preferential-attachment graph side by side show what hubs look like. Say it is a model, not data.gephi_create_project, gephi_open_project, gephi_save_project, gephi_get_project_info, gephi_new_workspace, gephi_list_workspaces, gephi_switch_workspace, gephi_duplicate_workspace, gephi_rename_workspace, gephi_delete_workspace, gephi_snapshot, gephi_undo.gephi_add_node, gephi_add_nodes, gephi_add_edge, gephi_add_edges, gephi_remove_node, gephi_bulk_remove_nodes, gephi_remove_edge, gephi_clear_graph, gephi_set_node_label, gephi_set_edge_label, gephi_set_node_attributes, gephi_set_edge_attributes, gephi_set_edge_weight, gephi_set_node_position, gephi_batch_set_positions, gephi_text_to_network, gephi_extract_backbone (disparity-filter pruning, a principled alternative to a flat weight cutoff).gephi_get_graph_stats, gephi_get_graph_type, gephi_get_columns, gephi_get_node, gephi_query_nodes, gephi_query_edges, gephi_profile_graph.gephi_compute_modularity (modularity_class), gephi_compute_degree (degree, indegree, outdegree), gephi_compute_betweenness (betweenesscentrality, closnesscentrality, eccentricity, harmonicclosnesscentrality), gephi_compute_pagerank (pageranks), gephi_compute_eigenvector (eigencentrality), gephi_compute_hits (authority, hub), gephi_compute_connected_components (componentnumber), gephi_compute_clustering_coefficient (clustering), gephi_compute_avg_path_length (values only), gephi_community_stability (stable_core, consensus_community, community_stability), gephi_list_statistics, gephi_run_statistic, gephi_stop_statistic.gephi_compare_nodes, gephi_find_shortest_path (equally_short_paths above 1 means no single middle node is "the" link), gephi_whatif, gephi_compare_workspaces, gephi_claim_record, gephi_compare_partitions (two groupings of the same nodes: cross-table, which known value each group mostly holds, and agreement scores). See references/claim-verification.md.gephi_bipartite_layout (needs a mode_column with two values), gephi_bipartite_projection (collapses to one mode in a new workspace; weighting "jaccard" keeps the most active people from dominating "who is closest", and "newman" counts a small shared event more than a large one).gephi_color_by_partition, gephi_color_by_ranking, gephi_color_edges_by_partition, gephi_size_by_ranking, gephi_set_node_color, gephi_set_node_size, gephi_batch_set_node_colors, gephi_set_edge_color, gephi_edge_thickness_by_weight, gephi_reset_appearance, gephi_label_clusters.gephi_run_layout, gephi_stop_layout, gephi_get_layout_status, gephi_get_available_layouts, gephi_get_layout_properties, gephi_set_layout_properties, gephi_community_layout, gephi_similarity_layout, gephi_visual_qa.gephi_focus_view, gephi_get_selection, gephi_set_selection_mode, gephi_get_perspective, gephi_switch_perspective.gephi_list_filters, gephi_apply_filter, gephi_apply_filters, gephi_reset_filters, gephi_filter_by_degree, gephi_filter_by_edge_weight, gephi_remove_isolates, gephi_extract_giant_component, gephi_extract_ego_network.gephi_add_column, gephi_batch_set_node_attributes, gephi_edit_column, gephi_column_value_frequencies, gephi_create_regex_column, gephi_detect_duplicates, gephi_merge_nodes.gephi_find_shortest_path, gephi_get_timeline, gephi_set_time_from_columns, gephi_time_slice.gephi_import_file, gephi_import_gexf, gephi_import_graphml, gephi_import_csv.gephi_get_preview_settings, gephi_set_preview_settings, gephi_export_png, gephi_export_svg, gephi_export_pdf, gephi_export_figure (map and legend as one PDF and PNG), gephi_export_legend, gephi_export_screenshot (the live canvas as the person sees it, selection included), gephi_export_gexf, gephi_export_graphml, gephi_export_csv, gephi_export (any format by name, for UCINET or Pajek), gephi_view_graph, gephi_session_receipt."ForceAtlas 2", with the space and capitals. Its key is barnesHutOptimization (turn it on above about 1,000 nodes), not barnesHutOptimize.file, not path.sync: true to gephi_run_layout, so Noverlap and Label Adjust do not start on a moving graph.gephi_health_check: graph_lock: "busy", or a nonzero graph_lock_stats.readers while Gephi is idle, means a leaked read hold that nothing recovers. Tell the person plainly that Gephi must be quit and reopened, and that an unsaved project will be lost (offer gephi_save_project early in long sessions). queued above 0 for a long time means a write is waiting behind a long reader such as a running statistic: pause changes and let it finish. From plugin 1.6.0, renderer.state: "stalled" means Gephi still draws but has not updated the picture for 2 seconds, so what the person sees is frozen; read it with the lock counters (a running statistic holding the lock explains it and ends on its own), and only if it persists across several checks with nothing running, say Gephi must be restarted. not_drawing (Data Laboratory open, window minimized) is not a fault.gephi_stop_statistic and run it again; never retry in a loop, which only queues more work behind the graph lock.gephi_focus_view with mode "graph" after an import or layout.Infinity or NaN while the call reports success, most often on weighted graphs with a heavy hub. A layout_exploded block in a sync run means do not style or export: reset with Random Layout and rerun. The heavy-tailed-weights flag is the advance warning.gephi_visual_qa lists them in extent.outliers and computes suggested_export from the main cloud; export at those dimensions. To pull them in, use strong gravity at 0.01 or lower.gephi_run_layout), layout values go under "properties", not "params". The wrong key returns success and runs on defaults. The tell: wide changes to scalingRatio or gravity return nearly the same layout extent.references/change-over-time.md (opens in a new tab)references/claim-verification.md (opens in a new tab)references/external-rendering.md (opens in a new tab)references/filtering.md (opens in a new tab)references/layout-guide.md (opens in a new tab)references/reading-network-maps.md (opens in a new tab)references/statistics-guide.md (opens in a new tab)references/text-network-analysis.md (opens in a new tab)references/tool-reference.md (opens in a new tab)references/version-notes.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mattartzanthro/gephi-ai --plugin gephi-network-analysisOther plugins' skills for the same job