Skip to main content
Glama
README.md1.15 kB
A simple middleware that turns your serverless server handler + OpenAPI spec + config into a exposed MCP endpoint following the new [stateless MCP principles](https://github.com/janwilmake/stateless-mcp) ![](with-mcp.png) See [example](example.ts) for how to use this. Earlier work: https://github.com/janwilmake/openapi-to-mcp > Disclaimer: Please only use this for APIs that are compliant to the MCP [Authorization spec](https://modelcontextprotocol.io/specification/2025-06-18/basic/authorization), or have no authorization. Also follow [good MCP practices](https://support.anthropic.com/en/articles/11596040-best-practices-for-building-mcp-servers) for choosing how to shape your tools, prompts, and resources. Do NOT Blindly turn a complex API into an MCP, this is a bad idea. **Work in progress**: I'm working on a simpler auth plugin for your handler as well to turn any API into a GitHub Oauth Client & Provider. Eventually it will be MCP compatible. See library [here](https://github.com/janwilmake/github-oauth-client-provider) [Please Let me know what you think on X in this thread!](https://x.com/janwilmake/status/1937823357690413245)

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/janwilmake/with-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server