Latentmachine MCP Server

Latentmachine MCP Server

Provides deterministic tools for understanding, transforming, and verifying structured data via MCP, enabling rule inference from examples and verification of transformed records.

Category
访问服务器

README

Latentmachine

Deterministic tools for understanding, transforming, and verifying structured data.

Try the browser tools · Read the case study · Developer guide

Latentmachine learns a transformation from before-and-after examples, turns it into an inspectable symbolic rule, and verifies that the rule behaves consistently. The engine is deterministic and runs locally: no model call, account, or server-side data processing is required for the core workflow.

The repository is both a working product and a design case study. It contains the static browser experience, the inference and verification engine, an npm-ready API and CLI, an MCP server, and the benchmark suites that gate every build.

What you can do

  • Verify a batch of transformed records and find the rows that broke the inferred rule.
  • Infer reusable transformations from JSON, CSV, YAML, TOML, XML, .env, or SQL INSERT examples.
  • Build regex and jq expressions from examples, with a verified preview before export.
  • Trace structured data with deterministic fingerprints, profiles, and path-level diffs.
  • Integrate the engine through JavaScript, a CLI, MCP over stdio, or the HTTP MCP endpoint.

Design principles

Latentmachine is intentionally opinionated:

  1. Show the rule, not only the result.
  2. Diagnose ambiguity and contradiction instead of silently guessing.
  3. Keep the same input and rule deterministic across runs.
  4. Keep user data in the browser for the core workflow.
  5. Gate product claims with executable benchmarks and acceptance tests.

The full behavioral contract lives in docs/latentmachine-product-contract.md.

Repository map

api/                     Vercel HTTP/MCP entrypoint
articles/                Long-form product and engineering notes
docs/                    Public architecture and product contracts
fixtures/                Synthetic regression and acceptance data
packages/verify/         JavaScript API and CLI package
packages/mcp/            Stdio MCP server package
scripts/                 Build, benchmark, acceptance, and release tooling
src/intelligence/        Deterministic engines and format adapters
src/local/               Browser UI, state, rendering, and shared styles
src/vendor/              Audited vendored source with its upstream license

For a module-by-module tour, see docs/intelligence-baselayer.md.

Run locally

Requirement: Node.js 20 or newer.

npm install
npm run dev

Open http://127.0.0.1:4173. The site uses plain HTML, CSS, and JavaScript; no framework build step is required during development.

Use the JavaScript API

The packages are implemented in this monorepo but are not yet published to npm. From a workspace checkout:

import { infer, transform, verify } from "./packages/verify/src/index.js";

const examples = [
  { input: { first: "Ada", last: "Lovelace" }, output: { name: "Ada Lovelace" } },
  { input: { first: "Grace", last: "Hopper" }, output: { name: "Grace Hopper" } },
];

const inferred = infer({ examples });

if (inferred.status === "safe") {
  const output = transform({
    rule: inferred.rule,
    input: { first: "Katherine", last: "Johnson" },
  });
  console.log(output);
}

const result = verify({
  original: examples.map((example) => example.input),
  transformed: examples.map((example) => example.output),
});

console.log(result.verdict);

After the first npm release, the package will be installable as @latentmachine/verify; @latentmachine/mcp will expose the same engine to MCP clients.

Quality gates

Run the same full check used before deployment:

npm run check

This runs the benchmark suite, builds the deployable site into dist/, smoke-tests the built pages, and checks both the source graph and final artifact for accidental private or development files.

Focused checks are available while iterating:

npm run test:package:verify
npm --workspace packages/mcp run smoke
npm run bench:json
npm run bench:translator
npm run accept:mcp

Privacy and security

The core browser tools process input locally. Synthetic fixtures are committed for repeatable tests; generated output, credentials, local notes, and internal audit material are excluded from version control. Please report security issues through a private GitHub security advisory as described in SECURITY.md.

Contributing

Bug reports, difficult transformation examples, design feedback, and focused pull requests are welcome. Start with CONTRIBUTING.md, which documents the project boundaries and expected checks.

Built by

Latentmachine is designed and built by Sandro Vogel, a Berlin-based AI product designer and creative developer. If the project helps your work, a link to latentmachine.com or a citation using CITATION.cff is appreciated.

License

The code and original project documentation are available under the MIT License. The required copyright notice includes the author link and must remain with copies or substantial portions of the software. Bundled third-party components retain their own licenses; see THIRD_PARTY_NOTICES.md.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选