# Gravity AI UI MCP Docs

Gravity AI UI exposes a Streamable HTTP MCP server for public gallery lookup and interface generation.

## Endpoints

- Canonical MCP server: https://gravity-ai.ydb-qdrant.tech/mcp
- Well-known MCP alias: https://gravity-ai.ydb-qdrant.tech/.well-known/mcp
- Server card: https://gravity-ai.ydb-qdrant.tech/.well-known/mcp/server-card.json
- OpenAPI spec: https://gravity-ai.ydb-qdrant.tech/openapi.json

## Tools

- `search_interfaces`: search public liked interface drafts.
- `get_interface`: fetch a public interface payload and React code.
- `generate_interface`: generate a new interface from a prompt.
- `refine_interface`: refine an existing composed payload.

## curl example

```bash
curl -X POST https://gravity-ai.ydb-qdrant.tech/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  --data '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```