ena-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ena-mcplist my ENA projects"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ena-mcp
An MCP server that lets an AI assistant drive
Epistemic Network Analysis models hosted on the webENA cloud service
(app.epistemicnetwork.org).
Models are computed by webENA's own R / OpenCPU + rENA backend, so the numbers are canonical rENA output — this is not a reimplementation or an approximation. The server handles transport, decoding, and presentation.
繁體中文說明:README.zh-TW.md
What it does
Once connected, an assistant can list your ENA projects, inspect a set's column roles and algorithm parameters, run the model, and get back per-unit ENA scores, edge weights, node positions, variance explained, eigenvalues, the rotation matrix, and goodness-of-fit correlations — then plot networks, sweep the stanza window, run group statistics, and pull the raw discourse behind any connection.
Protocol details are documented in docs/PROTOCOL.md, derived from observed traffic against a live account.
Unofficial. This project is not affiliated with, endorsed by, or supported by the Epistemic Analytics Lab or UW–Madison. It talks to a private API that carries no compatibility guarantee. See Limitations.
Related MCP server: holoviz-viz-mcp
Install
git clone https://github.com/Ian3738/ena-mcp.git
cd ena-mcp
npm install && npm run buildRequires Node.js 20 or newer.
Authentication
webENA authenticates with an HttpOnly session cookie. There is no API token, and the login endpoint is not part of the app bundle, so the cookie has to be copied manually once. Accounts registered through Google SSO cannot use programmatic username/password login at all.
Sign in at
https://app.epistemicnetwork.orgOpen DevTools → Application → Cookies →
app.epistemicnetwork.orgCopy the session cookie as
name=value(e.g.connect.sid=s%3A…)Store it:
mkdir -p ~/.ena-mcp && chmod 700 ~/.ena-mcp
printf '%s' 'connect.sid=PASTE_HERE' > ~/.ena-mcp/cookie
chmod 600 ~/.ena-mcp/cookieAlternatives: set ENA_SESSION_COOKIE directly, or point
ENA_SESSION_COOKIE_FILE at another path.
The cookie expires. When it does, every tool returns the same actionable error — fetch a fresh one. The cookie value is redacted from all tool output before it leaves the process.
Verify
npm run smokeChecks the cookie, lists projects, and opens the socket.io connection. To run a model end to end:
npm run smoke -- --set "<setID>" --project "<projectName>"Connect an MCP client
Add to claude_desktop_config.json (or any MCP client's server config):
{
"mcpServers": {
"ena": {
"command": "node",
"args": ["/absolute/path/to/ena-mcp/dist/src/index.js"],
"env": { "ENA_SESSION_COOKIE_FILE": "/Users/you/.ena-mcp/cookie" }
}
}
}Configuration
Variable | Default | Purpose |
| — | Session cookie value |
|
| File containing it |
|
| Server origin |
|
| Request timeout (matches the server's own 6-minute watchdog) |
Tools
Session and browsing
Tool | Purpose |
| Validate the cookie and list projects. Run this first |
| Folders, uploaded data files, and sets inside a project |
| Column roles and algorithm parameters, without computing |
Modelling
Tool | Purpose |
| Core. Returns per-unit ENA scores, edge weights, node positions, variance explained, eigenvalues, rotation matrix, goodness of fit. Algorithm parameters can be overridden per run |
| Run across several moving-window sizes and compare variance explained and GOF — for justifying a window choice |
| The server's recommended window size |
| Co-registration correlations (reviewers expect these reported) |
| webENA's auto-generated Methods paragraph for the current model |
Data and qualitative evidence
Tool | Purpose |
| The raw CSV behind a set — for reading utterances, checking coding, pulling quotes |
| The discourse rows behind a selected connection |
Statistics and visualization
Tool | Purpose |
| Between-group test (Mann-Whitney U / t-test) |
| ENA network as SVG |
| Between-group subtraction network as SVG |
A typical flow:
ena_check_session → ena_get_project → ena_get_set
→ ena_run_model → ena_plot_network / ena_compare_groups
→ ena_get_data (quotes) → ena_get_methods (write-up)Model results are cached per set for the session, so plotting and comparison do not re-run the model.
Limitations
1. Parameters yes, selections no.
/set/generate strips selections
(ENA.getSaveableSet = set => _.omit(set, "selections", "set")) and the server
resolves them from the persisted selectionsRef. Therefore:
✅ Algorithm parameters (
stanzaSize,stanza,sphereNorm,centerZero,ordered) take effect directly❌ Which individual units / conversations / codes are selected requires
/set/save-modelplus a rebuilt selection tree — effectively reproducing two browser web workers. Change selections in the web UI, then run the model here.
2. This is a private API. webENA publishes no API contract. A release can
break this server without warning. docs/PROTOCOL.md records what was observed
so the differences can be re-derived.
3. Data leaves the machine. Every model run computes discourse on UW–Madison's servers. The data already lives there, but for human-subjects work under an ethics protocol this belongs in the risk assessment.
4. Cookies expire and must be refreshed by hand.
Alternative
rENA's CRAN maintainer publishes
@qe-mcp/server-ena, which
runs ENA locally via WASM and installs as a one-click .mcpb.
The two do not overlap:
ena-mcp |
| |
Existing sets in a webENA account | ✅ read and model | ❌ not visible |
Offline / data stays local | ❌ | ✅ |
Change individual unit/code selections | ❌ | ✅ |
API stability | reverse-engineered | package-versioned |
Installing both is reasonable: this one to work with existing cloud projects, the official one for local exploration and CSV experiments.
Development
npm run build # compile
npm test # decoder tests (13)
npm run dev # watch modeLicense
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ian3738/ena-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server