An MCP server is a component of the Model Context Protocol (MCP), an open standard developed by Anthropic, the company behind Claude. MCP is used for connecting AI models with external tools and data sources. It acts as a bridge, enabling AI applications to access and use external API.

Claude AI connected to Ainvest MCP

Remote Ainvest MCP

Server url: https://docsmcp.ainvest.com. Make sure you configure your MCP client to pass the Authorization header the same way as you would call an API endpoint:

Authorization: Bearer {TOKEN}

Configuring Claude Desktop

Claude offers direct connectivity to remote MCP servers with their more expensive subscription plan. With free version you can still use MCP servers, but they have to be run locally. One of the easier ways is to use https://www.npmjs.com/package/mcp-remote, which is run locally and simply converts local calls to remote calls. Add this to Claude Desktop configuration. Note that you still need to have nodejs and npx installed on your machine:

"remote ainvest": {
    "command": "npx",
    "args": [
        "mcp-remote",
        "https://docsmcp.ainvest.com",
        "--header",
        "Authorization: Bearer ${AUTH_TOKEN}"
    ],
    "env": {
        "AUTH_TOKEN": "your token goes here"
    }
}