Skip to main content

MCP Server for ElasticGraph to allow goose, Cursor, etc to create and manage your ElasticGraph project.

Project description

ElasticGraph MCP Server

This provides a Model Context Protocol (MCP) server for ElasticGraph using the MCP python-sdk.

Setup

  1. Install dependencies:
# make install
uv sync

source .venv/bin/activate
  1. Run the server:

The server runs on port 3000, and though there are no logs displayed, it is actively waiting for input.

# make server
uv pip install .
elasticgraph-mcp-server

Development

MCP Inspector

You can test your MCP server with Anthropic's Inspector. To start:

  1. Run the following command, which starts the server as a subprocess and launches the Inspector UI:
# make inspector
mcp dev src/elasticgraph_mcp/server.py
  1. Open your browser and navigate to http://localhost:5173 to access the MCP Inspector UI.

Goose

Add a development build to Goose:

  1. In Goose, navigate to Settings > Extensions > Add.
  2. Set Type to StandardIO.
  3. Obtain the absolute path to the project’s CLI:
# Get the path and copy it to your clipboard
realpath .venv/bin/elasticgraph-mcp-server | pbcopy
  1. Type uv run then paste that path
uv run </path/to/elasticgraph_mcp/.venv/bin/elasticgraph-mcp-server>
  1. Enable the extension and verify that Goose recognizes your tools.

Ask goose: What tools and resources for ElasticGraph do you have?

Development commands

This project uses make for common development tasks. To see all available commands, run:

make help

Using Goose to help with development

You can use Goose to improve this MCP server. To teach goose about MCP, follow these steps:

Setting Up a Goose Session

  1. Navigate to this MCP Server Directory:
cd ai_tools/elasticgraph-mcp-server
  1. Prepare a Temporary Directory:
mkdir tmp
touch tmp/.gitignore
echo "/*" > tmp/.gitignore
  1. Create MCP Instructions File:

Copy MCP instructions from MCP LLM instructions to a new file:

touch tmp/mcp_for_llm_instructions.md
  1. Start a Goose Session:
goose session

Try this prompt:

First, learn about MCP servers from tmp/mcp_for_llm_instructions.md. Then, see the current MCP server I'm building in src/elasticgraph_mcp/server.py. Now

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elasticgraph_mcp_server-0.1.1.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

elasticgraph_mcp_server-0.1.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file elasticgraph_mcp_server-0.1.1.tar.gz.

File metadata

  • Download URL: elasticgraph_mcp_server-0.1.1.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for elasticgraph_mcp_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 196834b68c8c886722c81e5fa5268a62ce0b69eb38e40ac787a577fbbcb7876b
MD5 0a05bee04dc263544504709da9d2dcab
BLAKE2b-256 39eccc01c64f3fc117013ddbccd065fec5635ec39816261f23af27bc9baa3d89

See more details on using hashes here.

File details

Details for the file elasticgraph_mcp_server-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for elasticgraph_mcp_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eaf13e3bf3cc73bed08bff305d15d182f855ba612e5614d681d8382688055626
MD5 04c39ce6cdf80cd6e37efd166ab12833
BLAKE2b-256 10e4e0df9a4215ba2d039744954abdb42a52670913a1957d15b67fd166b6c644

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page