# pgvector retriever template
You can use PostgreSQL and `pgvector` as your retriever implementation. Use the
following examples as a starting point and modify it to work with your database
schema.
We use [database/sql](https://pkg.go.dev/database/sql) to connect to the Postgres server, but you may use another client library of your choice.
```golang
{% includecode github_path="firebase/genkit/go/samples/pgvector/main.go" region_tag="retr" adjust_indentation="auto" %}
```
And here's how to use the retriever in a flow:
```golang
{% includecode github_path="firebase/genkit/go/samples/pgvector/main.go" region_tag="use-retr" adjust_indentation="auto" %}
```
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/firebase/genkit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server