UNPKG

@mbstudio/sbb-mcp

Version:

A MCP (Model Context Protocol) server for the Swiss Federal Railways

51 lines (34 loc) 1.46 kB
# SBB/CFF/FFS MCP A [Model Context Protocol](https://modelcontextprotocol.io) server for the Swiss Federal Railways. This project is a proof of concept for a Model Context Protocol server that provides information about the Swiss Federal Railways (SBB/CFF/FFS) trains, stations, and other related data. ## Usage Run the MCP server with the following command: ```bash npx -y @mbstudio/sbb-mcp@latest ``` Or add to your `mcp.json`: ```json "sbb": { "command": "npx", "args": [ "-y", "@mbstudio/sbb-mcp@latest" ] } ``` [![Add MCP Server sbb to LM Studio](https://files.lmstudio.ai/deeplink/mcp-install-light.svg)](https://lmstudio.ai/install-mcp?name=sbb&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBtYnN0dWRpby9zYmItbWNwQGxhdGVzdCJdfQ%3D%3D) ## Available Tools | Tool | Description | | ---------------- | ----------------------------------------------------------- | | `sbb_get_places` | Return a list of places available from name | | `sbb_get_trips` | Return a list of trips available from two places ID or name | ## Development To run the MCP server in development mode, you can use the [MCP Inspector](https://github.com/modelcontextprotocol/inspector). First build the server: ```bash pnpm build ``` Then run the server inspector: ```bash npx @modelcontextprotocol/inspector node dist/index.js ```