MCP.so
Sign In

Overview

What is MCP?

MCP is a simple example of a client and server using the Connect API. It demonstrates how to build a Model Context Protocol (MCP) server that exposes Swagger/OpenAPI operations as tools for an AI chat application.

How to use MCP?

Run the server with CONNECT_API_KEY="<your key>" SWAGGER_FILE="swagger.yaml" make server. Then run the client with make client. To see the Swagger integration in action, start a local OpenAPI-compatible server using make ex-starwars and launch the Shiny application with make shiny.

Key features of MCP

  • Example client‑server implementation using the Connect API
  • Swagger/OpenAPI tool registration with Chatlas
  • Expands Swagger references and transforms to operation dictionaries
  • Maps OpenAPI operations to callable tools
  • Includes a Shiny application demo for interactive chat

Use cases of MCP

  • Build a chat‑based interface for any OpenAPI‑compatible service
  • Rapidly prototype an MCP server that exposes API endpoints as AI tools
  • Demo integrating a Star Wars API with an AI‑powered chat application
  • Learn how to register Swagger tools with Chatlas for intelligent API calls

FAQ from MCP

How do I run the MCP server?

Set the CONNECT_API_KEY and `SWAG

Tags

More from Other