@the-grid-data/mcp
v0.4.0
Published
MCP server for The Grid Data
Downloads
230
Readme
Grid MCP Server
A simple Model Context Protocol (MCP) server that provides access to the Grid GraphQL API at https://beta.node.thegrid.id/graphql.
Features
- Two Tools:
query- Execute custom GraphQL queries against the Grid APIfind- Flexible search for products or assets by name, type, and/or status with powerful query syntax
- No Authentication: Direct access to the public Grid endpoint
- TypeScript: Fully typed implementation
- npx Ready: No installation required, works via npx
Installation
No installation required! Just add to your MCP client configuration.
Cursor IDE
Edit ~/.cursor/mcp.json:
{
"mcpServers": {
"grid": {
"command": "npx",
"args": ["-y", "@the-grid-data/mcp@latest"]
}
}
}Claude Desktop
macOS: Edit ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: Edit %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"grid": {
"command": "npx",
"args": ["-y", "@the-grid-data/mcp@latest"]
}
}
}Restart your MCP client after making changes.
MCP Tools
1. query
Execute a custom GraphQL query against the Grid API.
How to use: Just ask Claude in natural language to query the Grid API.
Examples:
Query The Grid MCP to get the first 5 profiles with their id and slugUse The Grid MCP to fetch all product typesCan you run this GraphQL query:
query {
products(limit: 10) {
id
name
}
}2. find
Flexible search for products or assets with powerful filtering capabilities.
How to use: Just ask Claude to find products or assets using natural language. The AI will automatically handle the filtering logic.
What you can search by:
- Entity type (products or assets)
- Name (exact match or partial search)
- Type (exact match or multiple types)
- Status (exact match or multiple statuses)
- Limit the number of results
Examples:
Basic searches:
Find all L1 products on The GridSearch for assets with "bitcoin" in the name on The GridShow me products with type L1, L2, or L3 on The GridMultiple filters:
Find active products with names containing "wallet"Get L1 and L2 products that are either active or pending statusShow me the first 20 assets with "ethereum" in the nameAdvanced:
Find products where type is either L1 or contains "Layer", and status is activeSearch for pending or active L2 products, limit to 5 resultsWhat you get back: List of products/assets with id, name, type, status, and associated root
How It Works
This MCP server uses stdio transport - it runs locally on your machine when invoked by Claude Desktop or other MCP clients. No hosting or HTTP server needed!
When you use npx, it:
- Downloads and caches the package on first use
- Runs it locally when Claude needs to query the Grid API
- Communicates via stdin/stdout with the MCP client
GraphQL Endpoint
The server proxies requests to: https://beta.node.thegrid.id/graphql
No authentication required.
Architecture
Claude Desktop → stdio → The Grid MCP (local npx) → HTTP → Grid GraphQL APITroubleshooting
MCP server not showing up in Claude/Cursor
Check configuration file location:
- Cursor:
~/.cursor/mcp.json - Claude Desktop (macOS):
~/Library/Application Support/Claude/claude_desktop_config.json - Claude Desktop (Windows):
%APPDATA%\Claude\claude_desktop_config.json
- Cursor:
Verify JSON syntax: Ensure your configuration is valid JSON (no trailing commas, proper quotes)
Restart completely: Fully quit and restart the application (not just reload window)
Check logs:
- Cursor: Check the Developer Tools console (Help → Toggle Developer Tools)
- Claude Desktop: Check application logs for MCP connection errors
"Tool not found" errors
If Claude says it can't find the find or query tools:
- Restart the MCP server in your client settings
- Verify the server is running: check MCP status in your client
- Clear any cached configurations and restart
GraphQL query errors
If you get parsing errors from the GraphQL API:
- Verify field names: Ensure you're using correct field names for the Grid API schema
- Check query syntax: The
findtool generates valid syntax, but customquerytool requires valid GraphQL - Use query tool for debugging: Try the raw
querytool to test GraphQL directly
Connection or network errors
- Verify endpoint: The server connects to
https://beta.node.thegrid.id/graphql - Check network: Ensure your machine can reach the Grid API
- Firewall/proxy: Check if corporate firewall or proxy is blocking the connection
Development issues
- Build fails: Run
npm installorpnpm installto ensure dependencies are installed - TypeScript errors: Ensure you're using TypeScript 5.3.3 or higher
- Module resolution: This package uses ES modules (
"type": "module"in package.json)
Still having issues?
- Check the GitHub Issues for similar problems
- Review the MCP protocol documentation at modelcontextprotocol.io
- Ensure you're using the latest version:
npx @the-grid-data/mcp@latest
Contributing
For development setup and contribution guidelines, see the GitHub repository.
License
MIT
