MCP server
You can use our MCP server to easily access data
Laplace MCP Server
Connect your AI assistant (Claude or any MCP-compatible client) to Laplace market data through the Model Context Protocol (MCP). The server runs remotely; for most clients there is nothing to install.
- Server URL:
https://mcp.finfree.app/mcp - Transport: Streamable HTTP
- Authentication: your Laplace API key, sent as a request header
The server accepts the key in either of these headers:
Authorization: Bearer YOUR_API_KEYX-Laplace-Api-Key: YOUR_API_KEY
Requests without a key are rejected with HTTP 401.
Prerequisites
- A Laplace API key (Step 1)
- One of: Claude Desktop or claude.ai, Claude Code, or another client that supports remote MCP servers over Streamable HTTP
Step 1: Get your API key
- Sign up or log in to your Laplace account
- Open API Keys in the dashboard and copy your key
Keep the key private. Anyone holding it acts as your organisation, including the tools that create or delete custom themes and manage WebSocket feeds.
Step 2: Connect your client
Claude Desktop and claude.ai
Claude connects to the server directly as a custom connector. Nothing to install.
- Open the connector settings:
- Free, Pro and Max plans: go to Customize > Connectors, click Add, then Add custom connector.
- Team and Enterprise plans: only an organisation owner can add connectors. Go to Organization settings > Connectors, click Add, then Custom (choose Web if asked). Members then click Connect on the connector.
- Name:
Laplace. URL:https://mcp.finfree.app/mcp. Click Continue if shown. - Under Authentication, choose No sign-in.
- Open Request headers and add a header with the name
authorizationand the valueBearer YOUR_API_KEY(type the wordBearer, a space, then your key; Claude sends the value exactly as you type it). Leave Required checked. If the dialog shows everything on one screen, Request headers is under Advanced. - Click Add. In a chat, open the + menu, go to Connectors and enable Laplace.
Header authentication is currently a beta feature in Claude and not every organisation has it yet. If your dialog has no Request headers section, use the mcp-proxy setup below instead.
Good to know:
- Use the header name
authorization. Claude accepts standard header names such asauthorizationfor every connector; a custom name such asX-Laplace-Api-Keyneeds approval from Anthropic. - Connector authentication cannot be edited after saving. To change the key, remove the connector and add it again.
- Free plans allow one custom connector.
Alternative: Claude Desktop with mcp-proxy
If the Request headers section is not available, run a small local bridge called mcp-proxy. Claude Desktop starts it; it forwards the conversation to the Laplace server and adds your API key.
Install mcp-proxy
macOS:
brew install pipx
pipx install mcp-proxy
Windows (PowerShell):
# Install Scoop first if you don't have it
iwr -useb get.scoop.sh | iex
scoop install pipx
pipx install mcp-proxy
Linux (Ubuntu/Debian):
sudo apt install pipx
pipx ensurepath
pipx install mcp-proxy
Restart your terminal, then find the installed path with which mcp-proxy (macOS/Linux) or where mcp-proxy (Windows).
Configure Claude Desktop
Open the configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
If the file is empty, start with {"mcpServers": {}}. Add the Laplace entry, using the path from the previous step and your API key:
{
"mcpServers": {
"laplace": {
"command": "/Users/john/.local/bin/mcp-proxy",
"args": [
"--transport", "streamablehttp",
"https://mcp.finfree.app/mcp"
],
"env": {
"API_ACCESS_TOKEN": "YOUR_API_KEY"
}
}
}
}
On Windows the path looks like C:\Users\john\.local\bin\mcp-proxy.exe. In the JSON file, write every backslash twice: "command": "C:\\Users\\john\\.local\\bin\\mcp-proxy.exe".
API_ACCESS_TOKEN is read by mcp-proxy and sent to the server as an Authorization: Bearer header. Completely quit and restart Claude Desktop; Laplace then appears in the tools list.
Claude Code
claude mcp add --transport http laplace https://mcp.finfree.app/mcp \
--header "X-Laplace-Api-Key: YOUR_API_KEY"
This adds Laplace to the current project only. Add --scope user to make it available in every project. Run /mcp inside Claude Code to confirm the server is connected.
Other clients
Any client that supports remote MCP servers over Streamable HTTP works: point it at https://mcp.finfree.app/mcp and send X-Laplace-Api-Key: YOUR_API_KEY (or Authorization: Bearer YOUR_API_KEY) with every request.
Step 3: Try it
Ask your assistant, for example:
- "What are THYAO's key stats and P/E ratio?"
- "Show me the last month of AAPL prices as a chart."
- "Which BIST stocks gained the most today?"
- "Summarise the latest news about GARAN."
The assistant picks the matching Laplace tool and calls it with your key.
What you can ask for
Tools are grouped by area: stock profiles and prices, chart images, fundamentals and financial statements, historical ratios, collections, sectors, industries and custom themes, funds (TEFAS), broker flows, capital increases and rights, IPOs, news (feed and live), the screener, politician holdings, earnings call transcripts, live price / order book / bid-ask snapshots, and WebSocket feed management. region is tr (Borsa Istanbul) or us; locale is tr or en.
Good to know:
- Your API key identifies your organisation. Everyone using the same key shares the same custom themes, WebSocket users and usage report.
- Every tool call consumes Laplace API credits, like any other API request.
- Some tools change data (custom theme create, update and delete; WebSocket revoke and custom events). Review those calls before approving them in your assistant.
Troubleshooting
"missing Laplace API key" (HTTP 401): the request reached the server without a key header. Check the header name and, for Claude connectors, that the value starts with Bearer followed by a space.
"Laplace API error (HTTP 401): invalid token [invalid_token]": the key was sent but Laplace rejected it. Copy it again from the dashboard; keys can be deleted and regenerated there.
"Laplace API error (HTTP 403)": your plan does not include that endpoint, or you exceeded a limit.
Claude says "Couldn't check the server": make sure the URL is exactly https://mcp.finfree.app/mcp, including the /mcp path. The old /sse address no longer works.
The Claude connector keeps asking you to sign in: it was added with OAuth or without the header. Remove it and add it again with No sign-in and the authorization header.
mcp-proxy not found: confirm pipx install mcp-proxy completed, find the path with which mcp-proxy or where mcp-proxy, and use the full path in command.
Configuration not loading: check the JSON syntax (no trailing commas, backslashes doubled on Windows) and completely restart Claude Desktop.
Getting help
If you are stuck, contact us with the client you use, the exact error text and the time of the request. Never include your API key in a support message.