Generate MCP Servers from OpenAPI Specs
Blog post from Stainless
Generate Model Context Protocol (MCP) servers offer an innovative method for users to interact with APIs using natural language, enhancing the API layer on the internet. Stainless now allows for the automatic generation of MCP servers from OpenAPI specifications, providing a seamless integration that includes composable building blocks for customization and easy user filtering options. The MCP server lives alongside TypeScript SDKs and is published as a separate npm package, minimizing bundle sizes and allowing for fine-tuned exposure of API endpoints. Additionally, the protocol supports OAuth-based authentication for remote servers, enhancing accessibility for non-developers through Cloudflare Workers. This approach, while still experimental, is free for Stainless users and promises significant improvements in API interaction, as evidenced by positive feedback from early adopters like Modern Treasury and Fingertip.