viam-community-mcp

viam-community-mcp

An unofficial MCP server for inspecting and diagnosing Viam robotics fleets. It is currently in early development and not yet functional.

Category
Visit Server

README

viam-community-mcp

viam-community-mcp is an unofficial, and read-only, MCP server to inspect fleets of Viam machines.

Current Status

M2 is a local stdio MCP server with live read-only Viam calls behind a small ViamClient interface.

The server starts with environment-variable credentials and exposes four read-only tools. Normal tests still use deterministic fake data and do not require credentials or network access.

Implemented Tools

  • viam_whoami - reports whether the configured Viam client can identify the scoped organization.
  • viam_list_machines - lists visible Viam machines with IDs, names, locations, status, health, and last-seen timestamps when available.
  • viam_get_recent_errors - returns bounded recent error logs, optionally filtered by machine ID and since timestamp.
  • viam_summarize_fleet_health - summarizes machine health, recent errors, and evidence-backed machines to inspect first.

All tools route through ViamClient. Runtime uses the live client; tests use FakeViamClient.

V0 Scope

V0 behavior is local-only, stdio-only, read-only, and Codex-first.

Out of Scope

V0 will not control robots, move hardware, call arbitrary DoCommand, mutate config, restart machines, deploy modules, delete data, run as a hosted service, expose remote HTTP MCP, provide a UI, or claim support for clients other than Codex.

Install

npm install

Run

Build the package, then run the stdio server:

export VIAM_API_KEY_ID=replace-me
export VIAM_API_KEY=replace-me
export VIAM_ORG_ID=replace-me
npm run build
node dist/index.js

The server does not load .env files itself. If you keep credentials in a local .env, load them into the environment before starting the server and do not commit that file.

Development Commands

npm test
npm run typecheck
npm run lint
npm run build

npm test includes a live smoke test file, but that file skips unless VIAM_API_KEY_ID, VIAM_API_KEY, and VIAM_ORG_ID are all present.

To run only the live smoke check with credentials already set:

npm test -- test/liveSmoke.test.ts

Environment Variables

Required for the runtime server:

VIAM_API_KEY_ID=replace-me
VIAM_API_KEY=replace-me
VIAM_ORG_ID=replace-me

Do not paste credentials into prompts. Do not commit .env.

Codex Setup

After npm run build, configure Codex to run the local stdio server with node dist/index.js from this repo.

Detailed Codex setup docs are planned for M3.

Example Prompts

  • What Viam machines are visible to this MCP server?
  • Which machines look unhealthy?
  • Show recent Viam errors and what I should inspect first.

Safety Model

Inspection before action. The project is scoped so Codex can inspect fleet-like state, but cannot operate hardware.

Limitations

Live output is intentionally concise and bounded. The server does not return raw Viam API responses, raw machine configs, credential values, host stacks, or unbounded logs.

The live client currently uses organization lookup, machine summaries, and bounded part log reads. It does not control robots, call DoCommand, mutate config, expose remote HTTP, or provide a raw Viam API proxy.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured