textgraph
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
textgraph
textgraph turns a piece of text into a knowledge graph and answers questions about that graph: what the main topics and clusters are, which connections are missing, and what research questions or ideas those gaps suggest. It can also create a graph in an InfraNodus account, analyse an existing graph by name, and compare several texts through their graphs.
This package is a clean-room rebuild, and a labelled core subset: it covers 12 of the 22+ tools documented for the original InfraNodus MCP server. The omitted tools are listed under "Scope" below.
How it talks to the service
Every tool needs an InfraNodus API key:
export INFRANODUS_API_KEY="your key"
# Optional override (default: https://api.infranodus.com)
export INFRANODUS_API_URL="https://api.infranodus.com"With no key set, every call fails with an error naming
INFRANODUS_API_KEY, before any request is made.
Wire-format note: the original project's README documents the
tools and their purposes, not the HTTP wire format. The endpoint
shape used here is a documented reconstruction: each tool POSTs its
JSON arguments to {INFRANODUS_API_URL}/<tool name> — the tool name
with underscores, exactly as listed — with
Authorization: Bearer INFRANODUS_API_KEY. Responses are parsed
tolerantly: JSON is returned as structured text, a non-JSON body is
returned as-is, and an upstream HTTP error is reported with its
status and a body excerpt.
Local validation, applied before any request: analyze_text
requires at least one of text or url;
optimize_text_structure's responseType must be one of response,
idea, question, or transcend; and overlap_between_texts /
difference_between_texts require at least two texts.
Related MCP server: Tiling Trees MCP Server
Install
npx @reneturcios/textgraph generate_content_gaps '{"text":"..."}'Or run the container image:
docker run -i ghcr.io/cloudcorprecords/textgraphThe container defaults to the MCP server. Pass CLI arguments to use it as a CLI instead.
CLI
The CLI mirrors the tools: one subcommand per tool, taking its arguments as a single JSON object.
textgraph generate_knowledge_graph '{"text":"...","graphName":"notes"}'
textgraph analyze_existing_graph_by_name '{"graphName":"notes"}'
textgraph analyze_text '{"url":"https://example.com/article"}'
textgraph optimize_text_structure '{"text":"...","responseType":"idea"}'
textgraph overlap_between_texts '{"texts":["first","second"]}'
textgraph --versionExit codes: 0 on success, 1 on an API or validation error (the
error names the problem), 2 for usage errors.
MCP server
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
npx -y @reneturcios/textgraph mcpMCP client configuration:
{
"mcpServers": {
"textgraph": {
"command": "npx",
"args": ["-y", "@reneturcios/textgraph", "mcp"],
"env": { "INFRANODUS_API_KEY": "your key" }
}
}
}Tools
Tool | Input | What it does |
|
| Convert text into a knowledge graph: topics, concepts, relationships, clusters. |
|
| Retrieve and analyze an existing graph from the account. |
|
| Analyze a text or URL: topics, clusters, statements, graph structure. |
|
| Detect missing connections and underexplored topics in a text. |
|
| Topics and keyword clusters from text. |
|
| Topical overview of a text to augment LLM responses. |
|
| Research questions bridging content gaps. |
|
| Research ideas based on content gaps. |
|
| Bias/coherence analysis. |
|
| Create a graph in the account from text and return its link. |
|
| Similarities between texts via their graphs. |
|
| What's in the other texts but not the first. |
Scope
Omitted from this core subset: optimize_reasoning,
generate_responses_from_graph, develop_conceptual_bridges,
develop_latent_topics, develop_text_tool,
generate_ontology_graph, analyze_llm_results,
merged_graph_from_texts, analyze_google_search_results,
analyze_youtube_results, and any tools beyond the fetched README
list. The summaries, ideas, and questions these tools return are
produced by the upstream InfraNodus service; this package reproduces
the tool surface and the request/response handling, not that
service's analysis quality.
Development
npm install
npm run build # tsc -> dist/
npm test # node test runner over test/*.test.ts, fake fetch only, no network
npm run dev # run the CLI from source via tsxLicense
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Turn AI conversations into visual knowledge maps. Create, connect, search, and organize thoughts.
Map text into knowledge graphs to create a structured representation of conceptual relations and t…
Turn your notes, links and conversations into a Living Brain your AI tools share and build on.
Knowledge graph ingestion, entity search, ontology analysis, and CoSync scoring.
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceEnables advanced text network analysis and knowledge graph generation using graph theory algorithms to identify topics, detect content gaps, and extract structured insights from unstructured text.347 npm104MIT- AlicenseAqualityDmaintenanceEnables exploration and organization of research ideas using a hierarchical tile-based method with support for creating interconnected nodes (questions, hypotheses, methods, results), analyzing research gaps, and exporting to multiple visualization formats.18MIT
- FlicenseCqualityBmaintenanceEnables academic literature management through PDF import, hybrid search, knowledge graph construction, and automated literature review generation. Combines full-text search with semantic vector search for comprehensive paper analysis.55-
- FlicenseNot gradedqualityDmaintenanceProvides tools for AI-powered graph analysis, including relationship extraction, adjacency matrix creation, and network centrality calculations. It enables users to perform complex structural analysis and generate interactive D3.js visualizations from structured data.-