@matihlabs/mcp
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@matihlabs/mcprun a SQL query on the orders table: select * from orders limit 10"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@matihlabs/mcp
Connect AI clients (Claude Desktop, ChatGPT, Cursor, …) to the Matih data platform over the Model Context Protocol. Write SQL, profile tables, run analyses + charts, manage dashboards, and upload files — all through MCP tools, with OAuth/PKCE auth and PII-safe egress.
Use as a stdio MCP server (Claude Desktop / Cursor)
Add to your client's MCP config. The token is delivered via the environment — never as a CLI flag (which leaks into the OS process list):
{
"mcpServers": {
"matih": {
"command": "npx",
"args": ["-y", "@matihlabs/mcp", "https://app.matih.ai/api/v1/mcp"],
"env": { "MATIH_MCP_TOKEN": "<your Matih bearer token>" }
}
}
}The bridge turns the remote Matih HTTP MCP endpoint into a local stdio MCP server,
forwarding every tools/call, resources/read, and prompts/get to Matih.
Related MCP server: MCP StoneX UDP Genie
Use as a library
import { McpClient, MatihTools, StaticTokenProvider } from "@matihlabs/mcp";
const client = new McpClient({
endpoint: "https://app.matih.ai/api/v1/mcp",
tokenProvider: new StaticTokenProvider(process.env.MATIH_MCP_TOKEN!),
});
await client.initialize();
const matih = new MatihTools(client);
const result = await matih.runSql({ connection_id: "<id>", sql: "select 1" });OAuth (PKCE) instead of a static token
import { McpClient, OAuthTokenProvider } from "@matihlabs/mcp";
const tokenProvider = new OAuthTokenProvider({
resourceMetadataUrl: "https://app.matih.ai/.well-known/oauth-protected-resource/api/v1/mcp",
clientId: "<registered client id>",
acquire: async ({ metadata, clientId, resource }) => {
// open metadata.authorization_endpoint (PKCE S256, resource=<resource>),
// capture the code at your redirect_uri, return { code, verifier, redirectUri }.
},
});The provider runs RFC 9728 → RFC 8414 discovery, PKCE S256, RFC 8707 resource-bound
tokens, caches, and refreshes; a 401 invalid_token triggers one re-auth.
Tools
run_sql, run_analysis, profile_table, create_chart, create_dashboard,
get_dashboard, publish_dashboard, whoami, get_scope, get_query_result,
upload_file, upload_status, create_upload_url, finalize_upload (+ catalog /
lineage resources and the explain_metric prompt).
Notes
Egress consent. Matih gates third-party-LLM data egress per tenant. If your tenant hasn't accepted the data-processing agreement, calls return a clear
EGRESS_CONSENT_REQUIREDerror with a link to accept it.Node ≥ 20 (uses native
fetch+node:crypto; zero runtime dependencies).
License: Apache-2.0 · https://matih.ai
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/matih-labs/matih-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server