
Template miurla
Morphic
Open-source AI answer engine with cited answers and generative UI, built on Next.js and the AI SDK and self-hostable with Docker.
What it is
Morphic is an Apache-2.0 AI-powered search engine that returns grounded, cited answers and renders rich inline components from a streamed generative UI spec. It is a Next.js and Vercel AI SDK app with a model selector for OpenAI, Anthropic, Google, Ollama, Vercel AI Gateway and OpenAI-compatible providers, and search via Tavily, SearXNG, Brave or Exa. Chat history is stored in PostgreSQL, and the Docker Compose setup starts PostgreSQL, Redis, SearXNG and the app together.
What it's useful for
Running your own Perplexity-style search assistant, or starting a cited-answers product from a working codebase.
Key features
- Grounded, cited answers with Quick and Adaptive search modes
- Generative UI components streamed into answers
- Model selector for OpenAI, Anthropic, Google, Ollama, AI Gateway and OpenAI-compatible APIs
- Search providers: Tavily, SearXNG, Brave, Exa
- PostgreSQL chat history, shareable result URLs, file upload, guest mode
- Docker Compose stack and Deploy-to-Vercel button
How to use it
Before you start
- Docker (recommended) or Bun
- AI provider API key
git clone https://github.com/miurla/morphic.gitcd morphic && cp .env.local.example .env.localdocker compose up -dCommands are copied from the official documentation. Check the docs for the latest version before running them.
Limitations to know
- Needs at least one AI provider API key
- Local development without Docker also needs a search API key (e.g. Tavily) and Bun
MCP servers for this
Hugging Face's hosted MCP server that lets agents search models, datasets, Spaces and papers and call Gradio Spaces.
Perplexity's official MCP server that gives agents real-time web search, quick answers, deep research and reasoning via its API.
Microsoft's MCP server for browser automation that drives pages through Playwright accessibility snapshots.
Skills for this
Anthropic skill for generative art in p5.js with seeded randomness and an interactive viewer for exploring parameters.
Hugging Face's Agent Skills for the Hub CLI, datasets, model training, evaluation, Spaces and SageMaker deployment.
Related resources
DeepSeek's MIT-licensed open-weight reasoning and chat models, also served through an OpenAI- and Anthropic-compatible API.
Z.ai's GLM model family (GLM-5.3, GLM-5.3-Flash): open-weight MoE language models with a 1M-token context, API and chat app.
Google's web workspace for trying Gemini models and getting a Gemini API key with a free usage tier.
Hugging Face's platform hosting over 3M models, 1M datasets and 2M Spaces in Git-based repos, with a Python client and hf CLI.