Creating an MCP Server from an Anvil App

When I posted about DocDrop, I said I wanted to add an MCP server to it.

To do that, I’ve created two separate apps that can be used as dependencies for anyone else wanting to repeat the trick:

  • anvil_oauth - your app can be an identity provider for third-party clients
  • anvil_mcp - register server callables from your app as tools for AI agents to use

Those are now both in use on DocDrop and working nicely!


(The oauth app uses the .well-known paths trick from Serving /.well-known/ paths with @anvil.server.route — is it possible? Many thanks for that)

7 Likes