Company Records
Click 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., "@Company RecordsShow me the top 5 companies by revenue."
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.
MCP Server Demo — Company Records
A working Model Context Protocol server in Python that exposes a small company CRM database to AI agents as callable tools, plus a command-line chat agent that answers natural-language questions by calling those tools.
Built on the official MCP Python SDK (mcp) and the official Anthropic SDK.
What is MCP?
The Model Context Protocol is an open standard for connecting AI models to external tools and data. Instead of hard-coding a model's integrations, you run an MCP server that advertises a set of tools (each with a name, description, and JSON input schema). Any MCP client — Claude Desktop, an IDE, or your own agent — can connect, discover those tools, and let the model call them. The server and client talk over a simple transport (here, stdio). The result: one server works with any MCP-compatible client, and the model gets live, structured access to your data instead of guessing from its training set.
Related MCP server: nexus-mcp
What this server does
It serves a fictional B2B CRM dataset (12 companies, 16 contacts, 19 deals, stored in SQLite) through five tools:
Tool | What it does |
| Filter companies by industry, country, and/or minimum headcount |
| Full profile for one company, with its contacts and deals |
| Free-text search over contact name, title, or email |
| Pipeline totals — counts and dollar value, overall or by stage |
| Rank companies by revenue, employees, or total deal value |
The dataset is generated by company_data.py into a local company.db. It's
entirely invented and safe to share; swapping in a real database means pointing
the tools at different SQL.
How it works
stdio (MCP) tool calls
chat.py ─────────────────► server.py ─────────────────► company.db
(client) ◄───────────────── (server) ◄───────────────── (SQLite)
tool results rows
chat.py also calls the Claude API to decide *which* tools to call.server.pydefines each tool with the@mcp.tool()decorator. FastMCP turns the function signature and docstring into the tool's input schema and description automatically, and handles the MCP wire protocol.chat.pylaunches the server as a subprocess over stdio, discovers its tools, and runs an agentic loop: it sends your question to Claude along with the tool list, Claude responds with tool calls,chat.pyexecutes them against the server, feeds the results back, and repeats until Claude has a final answer.
Setup
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txtThe database is built automatically on first use. To build (or rebuild) it explicitly:
python company_data.py
# Built .../company.db with {'companies': 12, 'contacts': 16, 'deals': 19}Running the server
The server speaks MCP over stdio, so you normally run it through a client rather than directly. Two easy ways to poke at it:
MCP Inspector (a browser UI for trying tools by hand — no API key needed):
mcp dev server.pyClaude Desktop — add this to your claude_desktop_config.json:
{
"mcpServers": {
"company-records": {
"command": "python",
"args": ["/absolute/path/to/mcp-server-demo/server.py"]
}
}
}Restart Claude Desktop and the five tools appear; ask it about the data.
The chat agent (bonus)
chat.py is a self-contained client + agent so you can run the whole thing from
one terminal. It needs an Anthropic API key:
export ANTHROPIC_API_KEY=sk-ant-... # or copy .env.example to .env
python chat.py # interactive
python chat.py "Who are the CEOs in the database and what are their companies?" # one-shotExample session
$ python chat.py "What's our total closed-won pipeline, and which company has the most deal value?"
Connected to MCP server with 5 tools: search_companies, get_company, find_contacts, deal_summary, top_companies
· calling deal_summary()
· calling top_companies(by='deals', limit=1)
Closed-won deals total $13,075,000 across 7 deals. The company with the most
total deal value is Cobalt Mining Group at $7,700,000.Those figures come straight from the seeded data — deal_summary reports
closed_won at $13,075,000, and top_companies(by="deals") ranks Cobalt
Mining Group first. The · calling … lines show the actual tool calls Claude
chose to make.
Other questions that work well:
"Which software companies are in the database and how big are they?"
"Show me the full record for Pinecrest Health."
"Find every procurement contact."
"Rank the top 5 companies by revenue."
Project layout
mcp-server-demo/
├── server.py # MCP server — five tools over the SQLite DB
├── chat.py # CLI agent: Claude + MCP tool-calling loop
├── company_data.py # fictional dataset + SQLite builder
├── requirements.txt
└── .env.exampleTech
Python · Model Context Protocol (mcp SDK, FastMCP) · Anthropic API · SQLite
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
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.
Related MCP Connectors
API-first CRM for LLMs - contacts, companies, deals and activities over a native MCP server.
Let AI agents query data and act across all your business apps via MCP.
Hosted MCP endpoint with realistic fake data for prototyping agents. 12 tools, no setup.
The HubSpot MCP Server acts as a bridge that enables AI assistants and Large Language Models to securely interact with HubSpot CRM data through natural conversation, without requiring users to understand complex API structures. It provides read-only access to standard CRM objects (contacts, companies, deals, tickets, products, invoices, and more) and their associations, secured via OAuth 2.0, allowing AI agents to perform tasks like summarizing deals, fetching company updates, and looking up record changes.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to manage CRM data including companies, contacts, prospects, pipelines, forecasts, and tasks via typed MCP tools, with local SQLite storage and a JSON CLI.MIT
- AlicenseAqualityCmaintenanceMCP server that connects to a sales CRM database, enabling AI agents to search prospects, view pipeline status, manage follow-ups, and update records using natural language commands.5101ISC
- FlicenseNot gradedqualityCmaintenanceAn MCP-native CRM backend for AI agents, enabling customer, opportunity, note, follow-up, and pipeline health management through 15 MCP tools.-
- FlicenseNot gradedqualityCmaintenanceA read-only MCP server providing structured access to CRM data (companies, contacts, deals, activities) backed by SQLite. It enables LLMs to search contacts and deals, view full company accounts, find stale deals, and get pipeline summaries.-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/greyfieldsoftwaresolutions/mcp-server-demo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server