Skip to content

MCP server

@theneuralledger/mcp is a read-only Model Context Protocol server. It exposes intelligence as tools that an AI client can call — no client code required.

bash
npx -y @theneuralledger/mcp

The binary is tnl-mcp. For client-specific configuration (Claude Desktop, Cursor, and others) see MCP connecting.

Running

stdio — the usual mode, for clients that launch a subprocess:

bash
TNL_API_KEY=your_key npx -y @theneuralledger/mcp

HTTP — for a shared server several clients connect to:

ts
import { createHttpServer, listenHttp } from '@theneuralledger/mcp';

const server = createHttpServer({ apiKey: process.env.TNL_API_KEY! });
await listenHttp(server, { host: '127.0.0.1', port: 8931 });

Bind to loopback and put a reverse proxy in front if it needs to be reachable — the server trusts anything that can connect to it.

Docker, when you would rather not install Node:

bash
docker run --rm -i -e TNL_API_KEY=$TNL_API_KEY \
  ghcr.io/bekirdag/tnl-intelligence tnl-mcp

Embedding in your own server

ts
import { createTnlMcpServer } from '@theneuralledger/mcp';
import { runStdio } from '@theneuralledger/mcp';

const server = createTnlMcpServer({
  apiKey: process.env.TNL_API_KEY!,
  userAgent: 'acme-assistant/2.1',
});

await runStdio(server);

registerResearchMcp(server, options) adds the research tools to a server you already own, if you are composing several MCP sources into one process.

Tools

Intelligence

ToolAnswers
tnl_latest_newsWhat has just been published
tnl_entity_intelligenceWhat is happening around an organisation or person
tnl_asset_intelligenceWhat is moving an asset
tnl_impact_pathHow an event propagates to markets
tnl_explain_eventPlain-language explanation of a story
tnl_daily_risk_reviewToday's risk picture
tnl_event_due_diligenceStructured checks on a single event

Research — slower, evidence-first, and they consume research quota:

ToolAnswers
tnl_deep_researchMulti-source investigation of a question
tnl_research_asset_exposureExposure of an asset to a theme or event
tnl_research_validate_eventWhether a claimed event holds up
tnl_research_compare_sourcesWhere sources disagree
tnl_research_operational_riskOperational risk around an entity

Full argument schemas are in MCP tools.

Asking well

The tools are read-only, so the useful skill is picking the right one. In practice:

"Use tnl_asset_intelligence for KRW, then tnl_impact_path on anything it returns about policy rates."

beats asking a general question and hoping the client chooses. Naming the tool also makes the client's answer reproducible.

Research tools take longer and cost more quota than the intelligence tools. Reach for tnl_latest_news or tnl_entity_intelligence first, and escalate to tnl_deep_research only when the shallow answer is not enough.

Quota and safety

Every tool call is an API call against your plan. tnl status shows remaining quota; see plans.

The server is read-only — there is no tool that writes, deletes, or spends money, so an assistant cannot damage your account through it.

The Neural Ledger API