Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 5 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,6 @@ Requirements:

* Go (https://go.dev/doc/install)

### Clone the repo and build the server

Clone the repo, amd build the mcp server:

```shell
$ git clone [email protected]:algolia/mcp.git
$ cd mcp/cmd/mcp
$ go build
```
We need to have the full path of the built server binary:
```shell
$ pwd
/path/to/the/repo/cmd/mcp
```

__NOTE:__ When adding this command to your configuration, you must specify the binary along with the path (`/path/to/the/repo/cmd/mcp/mcp`)

### Update the settings to point to the new server

In Claude desktop edit the settings as per https://modelcontextprotocol.io/quickstart/user#2-add-the-filesystem-mcp-server and this time add the server definition for algolia (using the server path that you found earlier).
Expand All @@ -39,7 +22,11 @@ In Claude desktop edit the settings as per https://modelcontextprotocol.io/quick
{
"mcpServers": {
"algolia": {
"command": "/path/to/the/repo/cmd/mcp/mcp",
"command": "go",
"args": [
"run",
"github.com/algolia/mcp@latest"
]
"env": {
"ALGOLIA_APP_ID": "<APP_ID>",
"ALGOLIA_INDEX_NAME": "<INDEX_NAME>",
Expand Down
9 changes: 9 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package main

import "github.com/algolia/mcp/cmd/mcp"

var version = "dev"

func main() {
cmd.Execute()
}